[Github-comments] [geany] Deleting file outside of Geany when Autosave is enabled (#673)

van-de-bugger notifications at xxxxx
Fri Oct 2 20:46:36 UTC 2015


Geany 1.25 on Fedora 22, installed from Fedora repos, SaveActions plugin enabled (both AutoSave and When losing focus).

Consider a scenario: 

1. A file, say "Foo.txt", is open in the editor. 
2. Focus switches to another application like a file manager, file "Foo.txt" is deleted outside of Geany.
3. Focus switches back to Geany:
4. Geany detects that file is deleted, and shows pane at the top of editing window with text "File "Foo.txt" was not found on disk! Try to resave the file?" and two buttons "Save" and "Cancel".
5. Now user presses "Cancel" button in the pane. 
6. Immediately (the pane is still shown), a dialog entitled "Question" appears, with the same text and buttons. The dialog is modal, the main Geany window is not accessible.
7. User presses "Cancel" button in the dialog, it disappears.
8. Pane is still visible, so user has to press "Cancel" again.
9. User switches focus to another application, the file "Foo.txt" is saved with no questions.

Scenario varies, it probably depends on timing. Sometimes the first dialog appears even before user press "Cancel" in the pane, and after pressing "Cancel" in the first dialog, immediately appears the second.

Thus, user cancelled file saving at least 3 times , but it was saved anyway.

Geany and its plugins should communicate better and do not ask the same question again and again. If user cancels file saving, this file should not be autosaved (for example, newly created not-yet-named file is not saved when Geany loses focus).

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/673
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20151002/da94d96e/attachment.html>


More information about the Github-comments mailing list