diff options
author | Marcos Pinto <markybob@dipconsultants.com> | 2007-10-18 23:25:26 +0000 |
---|---|---|
committer | Marcos Pinto <markybob@dipconsultants.com> | 2007-10-18 23:25:26 +0000 |
commit | 58be40da1ef6eea91d4a5a1907609c9f14390ca7 (patch) | |
tree | f50bdcb10fcfdeacb824a3c5a6ad1119d28130ec | |
parent | 589c007386a91dd1816830b29570fd20a3105f16 (diff) | |
download | deluge-58be40da1ef6eea91d4a5a1907609c9f14390ca7.tar.gz deluge-58be40da1ef6eea91d4a5a1907609c9f14390ca7.tar.bz2 deluge-58be40da1ef6eea91d4a5a1907609c9f14390ca7.zip |
set some fields as insensitive which arent valid on win32
-rw-r--r-- | plugins/TorrentNotification/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/TorrentNotification/__init__.py b/plugins/TorrentNotification/__init__.py index bd8e3fc03..c14f3b139 100644 --- a/plugins/TorrentNotification/__init__.py +++ b/plugins/TorrentNotification/__init__.py @@ -116,7 +116,11 @@ class TorrentNotification: def configure(self, window): import os.path self.glade.get_widget("chk_tray_blink").set_active(self.config.get("enable_tray_blink")) - self.glade.get_widget("chk_notification").set_active(self.config.get("enable_notification")) + if deluge.common.windows_check(): + self.glade.get_widget("chk_notification").set_active(False) + self.glade.get_widget("chk_notification").set_sensitive(False) + else: + self.glade.get_widget("chk_notification").set_active(self.config.get("enable_notification")) self.glade.get_widget("chk_sound").set_active(self.config.get("enable_sound")) self.glade.get_widget("sound_path_button").set_sensitive(self.config.get("enable_sound")) self.glade.get_widget("sound_path_button").set_filename(self.config.get("sound_path")) |