mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-29 12:45:45 +00:00
Forced update of UI when main window is restored from tray or from minimized
state.
This commit is contained in:
parent
b3a912cdea
commit
34e268defd
@ -412,12 +412,16 @@ class DelugeGTK:
|
||||
self.window.hide()
|
||||
else:
|
||||
self.window.present()
|
||||
# Force UI update as we don't update it while minimized
|
||||
self.update()
|
||||
else:
|
||||
if self.config.get("lock_tray") == True:
|
||||
self.unlock_tray("mainwinshow")
|
||||
else:
|
||||
self.load_window_geometry()
|
||||
self.window.show()
|
||||
# Force UI update as we don't update it while in tray
|
||||
self.update()
|
||||
|
||||
def show_hide_window_toggled(self, widget):
|
||||
if widget.get_active() and not self.window.get_property("visible"):
|
||||
|
Loading…
x
Reference in New Issue
Block a user