canton7 / SyncTrayzor

Windows tray utility / filesystem watcher / launcher for Syncthing
MIT License
5.85k stars 401 forks source link

Preserve application state between minimizing to / recalling from tray #499

Open leafcutterant opened 5 years ago

leafcutterant commented 5 years ago

SyncThing 1.0.1 SyncTrayzor 1.1.22

The GUI resets every time you minimize it. This is undesirable and can lead to losses.

A case I came across: if you start to set up a connection, but then need to navigate to another window (e.g. copying folder path) and you happen to minimize the application, you lose all the configuring you have done.

For the sake of a friendlier UX, I propose preserving this state between minimizing to and recalling from tray.

canton7 commented 5 years ago

I'm afraid it's a tradeoff. Keeping the browser running in the background takes a not insignificant amount of RAM, and I don't want to keep using it if someone has minimized SyncTrayzor with the view to keeping it minimized. Generally if people are switching between windows, they just do that without minimizing each in turn, so I don't think this affects many people. Maybe there's scope for closing the browser if we've been minimized for a period of time.

leafcutterant commented 5 years ago

Generally if people are switching between windows, they just do that without minimizing each in turn, so I don't think this affects many people

SyncTrayzor was maximized and the target window wasn't visible. I believe the gut reaction is that if you can't see something you want to see, you minimize the window that's obstructing your view.

Maybe there's scope for closing the browser if we've been minimized for a period of time.

That sounds like a good idea! I propose 15 seconds.