-
-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minimize CKAN to tray and automatic refreshing #2565
Conversation
Thanks for taking you time and effort in my suggestion and i really hope this PR get accepted! |
I get this on trying to open the settings on Windows:
|
If you open CKAN, go to settings, and enable a timer, the timer doesn't start. You have to close and re-launch. This (and the above crash) is because the timer is only started in |
If you maximize, then minimize, then right click the tray icon and "Open CKAN", it doesn't re-maximize it. Instead it goes back to the window size before you maximized. |
Submitted Olympic1#3 with some fixes and one enhancement. |
Merged, I will look into the Maximize issue |
The maximize thing is because Maybe we could borrow Line 311 in caeb50d
|
Currently |
|
EDIT: Not correct, see below. |
Tested this extensively now. When the tray icon is disabled, it uses the default behaviour as before, saving the |
OK, I added some instrumentation to figure this out. What's happening is that IsWindowMaximised is set to true when the window is maximized, but then minimizing it sets IsWindowMaximised back to false. Maybe you're testing with minimizeToTray set to true? I have it as false. That ought to make a difference since the assignment happens in the else block of the if statement checking |
Submitted fix at Olympic1#4. |
Thought that I tried that previously, but apparantly not. Thanks |
GitHub says it can't rebase and merge, but I don't see actual conflicts. |
c8c8ae6
to
732a38b
Compare
Well, doesn't seem to work at all on my Mate desktop. |
(I just rebooted back to Linux.) I get a blank space in my app indicator bar in GNOME Shell (just to the left of Steam): Right clicking it brings up the menu but mostly off the screen: So maybe Mono doesn't like something about the image, and we might have to move the menu and fix its colors for dark themes. @politas, if you right click where an app indicator might appear while the setting is enabled, can you get the menu to show up? |
Changes
Core
Added an automatic refreshing of CKAN that happens after N minutes. This option can be set via the settings menu and is stored in the windows registry. This behaviour starts when the GUI is loaded and can be paused via the respective options, or by setting the rate to
0
.GUI
The GUI settings window's updates section is halved and a new behaviour section is added next to it to save some space:
Enable tray icon
shows a CKAN icon in the tray. The window is still shown on the taskbar.Minimize to tray
allows minimizing to the tray. The window is hidden from the taskbar.pause refreshing
pauses the automatic refreshing. This is disabled whenRefreshRate
is set to0
.When the GUI is minimized, you can double click the icon to bring back the GUI.
Also right clicking the icon shows a menu:
Refresh
refreshes the modlistPause
pauses the automatic refreshing. This is disabled whenRefreshRate
is set to0
.Open CKAN
opens the GUIOpen KSP Directory
opens the current KSP directoryCKAN Settings
opens the settings menuQuit
closes CKANWhen an update becomes available, it pops up a balloon notifying you that there is an update. Clicking it installs it. (Thanks @HebaruSan)
Other
StartPosition
in the settings windowRefresh on startup
from updates to more settingsCloses #2377.