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