From 64aeb867a41de1ef9754f00b757a0f5c0ad39b19 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 31 Oct 2007 03:52:55 +0000 Subject: [PATCH] make sound not sensitive on windows --- plugins/TorrentNotification/__init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/TorrentNotification/__init__.py b/plugins/TorrentNotification/__init__.py index c14f3b139..976b85bc2 100644 --- a/plugins/TorrentNotification/__init__.py +++ b/plugins/TorrentNotification/__init__.py @@ -119,11 +119,13 @@ class TorrentNotification: if deluge.common.windows_check(): self.glade.get_widget("chk_notification").set_active(False) self.glade.get_widget("chk_notification").set_sensitive(False) + self.glade.get_widget("chk_sound").set_active(False) + self.glade.get_widget("sound_path_button").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")) + 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")) self.dialog.set_transient_for(window) self.dialog.show()