File unsavable and unclosable after connection issues
When I'm editing remote files and there are connection issues there are two possible scenarios when a file is saved. (I don't know what the exact difference in the causes is, so the following is just a suspicion.)
- The network connection is shortly interrupted which causes the ssh connection to fail/get stuck. Saving the file now causes gedit to display a red banner below the tab list. You can simply close the banner, reconnect to the server and save again.
- The network connection fails completely and my system goes offline. In this case saving a file causes the appearance of a red exclamation mark left of the tab's title. Furthermore the tab's close button and the save button is greyed out and I cannot even reload the file. This doesn't change even if I successfully reconnect to my server. Opening the file from the file manager just brings the locked tab to the foreground. The only way I'm able to access the file again is by completely closing gedit and opening it again.
The behaviour in the second case is pretty bothersome when I'm working in an unstable Wi-Fi network. Especially because I have to copy and paste the unsaved work somewhere else before restarting gedit.
Why are there two different UI solutions for showing the user that a file could not be saved? Is there a way to regain access to the locked tab other than having to restart gedit?
IMHO gedit should always follow the first solution. The second one renders the editor basically unusable when certain errors occur.