From c86a17b42b21cbe8d8b57fa0e546fa041424a5bd Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 23 Sep 2007 23:38:54 +0000 Subject: [PATCH] Some interactivty tweaks. --- deluge/ui/gtkui/preferences.py | 6 ++++++ deluge/ui/gtkui/systemtray.py | 2 ++ 2 files changed, 8 insertions(+) diff --git a/deluge/ui/gtkui/preferences.py b/deluge/ui/gtkui/preferences.py index d15fd1cc5..af8f8b173 100644 --- a/deluge/ui/gtkui/preferences.py +++ b/deluge/ui/gtkui/preferences.py @@ -285,6 +285,12 @@ class Preferences: # Update the configuration self.core_config.update(config_to_set) + # Re-show the dialog to make sure everything has been updated + self.show() + + # Update the UI + self.window.update() + def hide(self): self.pref_dialog.hide() diff --git a/deluge/ui/gtkui/systemtray.py b/deluge/ui/gtkui/systemtray.py index fc4fcb560..5a6d2a418 100644 --- a/deluge/ui/gtkui/systemtray.py +++ b/deluge/ui/gtkui/systemtray.py @@ -287,6 +287,8 @@ class SystemTray: self.config[ui_key].pop() # Re-build the menu self.build_tray_bwsetsubmenu() + # Update the UI + self.window.update() def unlock_tray(self): log.debug("Tray locking needs implementation..!")