[Github-comments] [geany/geany] Hide overwrite button for readonly documents. (PR #3142)

Guido Falsi notifications at github.com
Mon Mar 28 16:56:29 UTC 2022


I have noticed that even when I mark a document "readonly" in the UI (for example via the document menu), when Geany detects a file change, the requester proposes me to overwrite it anyway.

This looks wrong, I mark the file read only because I want to avoid writing to it by mistake.

I often open the same file in two windows and mark it read only in one of those, I find this better than the split window (which I also use sometimes). I happened to overwrite a file by mistake due to a stray click on the overwrite button, so I decided to create this patch.
You can view, comment on, or merge this pull request online at:

  https://github.com/geany/geany/pull/3142

-- Commit Summary --

  * Hide overwrite button for readonly documents.

-- File Changes --

    M src/document.c (2)

-- Patch Links --

https://github.com/geany/geany/pull/3142.patch
https://github.com/geany/geany/pull/3142.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3142
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/3142 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20220328/ff9fd26f/attachment.htm>


More information about the Github-comments mailing list