diff options
author | Marcos Pinto <markybob@dipconsultants.com> | 2007-10-16 01:12:50 +0000 |
---|---|---|
committer | Marcos Pinto <markybob@dipconsultants.com> | 2007-10-16 01:12:50 +0000 |
commit | 8444cb852c6c7a07ff20daf1738dd9c277b78c96 (patch) | |
tree | f23940e32b00920a240c3e597989d0027083ce93 | |
parent | 20f580014b34a65fe1b14ab38dee2fe9d6ca0b8f (diff) | |
download | deluge-8444cb852c6c7a07ff20daf1738dd9c277b78c96.tar.gz deluge-8444cb852c6c7a07ff20daf1738dd9c277b78c96.tar.bz2 deluge-8444cb852c6c7a07ff20daf1738dd9c277b78c96.zip |
have thread/process selection inactive until fixed. now we automatically choose which method based on platform
-rw-r--r-- | plugins/WebUi/__init__.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/WebUi/__init__.py b/plugins/WebUi/__init__.py index 788a43c67..607829f41 100644 --- a/plugins/WebUi/__init__.py +++ b/plugins/WebUi/__init__.py @@ -201,9 +201,7 @@ class ConfigDialog(gtk.Dialog): gtk.FileChooserButton(_('Torrent Directory'))) self.cache_templates = self.add_widget(_('Cache Templates'), gtk.CheckButton()) - self.run_in_thread = self.add_widget(_('Run inside gtk'), - gtk.CheckButton()) - + self.run_in_thread = self.add_widget(_('Run inside GTK'), gtk.CheckButton()) self.download_dir.set_action(gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER) self.torrent_dir.set_action(gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER) @@ -231,7 +229,12 @@ class ConfigDialog(gtk.Dialog): self.torrent_dir.set_filename(self.config.get("torrent_dir")) self.download_dir.set_filename(self.config.get("download_dir")) - self.run_in_thread.set_active(self.config.get("run_in_thread")) + if deluge.common.windows_check(): + self.run_in_thread.set_active(False) + self.run_in_thread.set_sensitive(False) + else: + self.run_in_thread.set_active(True) + self.run_in_thread.set_sensitive(False) self.cache_templates.set_active(self.config.get("cache_templates")) self.vbox.pack_start(self.vb, True, True, 0) |