mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-27 11:45:44 +00:00
Ignore unmaximise event when window isn't visible
This fixes the bug where a maximised main window will become unmaximised (on restart) after quitting deluge from the system tray.
This commit is contained in:
parent
717db367e8
commit
f5956f01e7
@ -202,7 +202,7 @@ class MainWindow(component.Component):
|
||||
if event.new_window_state & gtk.gdk.WINDOW_STATE_MAXIMIZED:
|
||||
log.debug("pos: %s", self.window.get_position())
|
||||
self.config["window_maximized"] = True
|
||||
else:
|
||||
elif not event.new_window_state & gtk.gdk.WINDOW_STATE_WITHDRAWN:
|
||||
self.config["window_maximized"] = False
|
||||
if event.changed_mask & gtk.gdk.WINDOW_STATE_ICONIFIED:
|
||||
if event.new_window_state & gtk.gdk.WINDOW_STATE_ICONIFIED:
|
||||
|
Loading…
x
Reference in New Issue
Block a user