set file browser fields in deluge's preferences insensitive when in win32

This commit is contained in:
Marcos Pinto 2007-10-17 03:17:59 +00:00
parent cc77df8216
commit 1ddbf05b92
1 changed files with 5 additions and 0 deletions

View File

@ -80,6 +80,11 @@ class PreferencesDlg:
self.glade.get_widget("txt_open_folder_location").set_text(self.preferences.get("open_folder_location"))
self.glade.get_widget("radio_open_folder_stock").set_active(self.preferences.get("open_folder_stock"))
self.glade.get_widget("radio_open_folder_custom").set_active(not self.preferences.get("open_folder_stock"))
if common.windows_check():
self.glade.get_widget("combo_file_manager").set_sensitive(False)
self.glade.get_widget("txt_open_folder_location").set_sensitive(False)
self.glade.get_widget("radio_open_folder_stock").set_sensitive(False)
self.glade.get_widget("radio_open_folder_custom").set_sensitive(False)
self.glade.get_widget("combo_encin").set_active(self.preferences.get("encin_state"))
self.glade.get_widget("combo_encout").set_active(self.preferences.get("encout_state"))
self.glade.get_widget("combo_enclevel").set_active(self.preferences.get("enclevel_type"))