tray toggle preferences - plisk
This commit is contained in:
parent
210329f85b
commit
ac483482b6
|
@ -1234,6 +1234,7 @@ HTTP W/ Auth</property>
|
||||||
<property name="response_id">0</property>
|
<property name="response_id">0</property>
|
||||||
<property name="active">True</property>
|
<property name="active">True</property>
|
||||||
<property name="draw_indicator">True</property>
|
<property name="draw_indicator">True</property>
|
||||||
|
<signal name="toggled" handler="on_chk_use_tray_toggled"/>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
|
|
|
@ -40,7 +40,7 @@ class PreferencesDlg:
|
||||||
self.dialog = self.glade.get_widget("pref_dialog")
|
self.dialog = self.glade.get_widget("pref_dialog")
|
||||||
self.dialog.set_icon_from_file(common.get_pixmap("deluge32.png"))
|
self.dialog.set_icon_from_file(common.get_pixmap("deluge32.png"))
|
||||||
self.glade.signal_autoconnect({
|
self.glade.signal_autoconnect({
|
||||||
'tray_toggle': self.tray_toggle,
|
'on_chk_use_tray_toggled': self.tray_toggle,
|
||||||
'on_btn_testport_clicked': self.TestPort,
|
'on_btn_testport_clicked': self.TestPort,
|
||||||
})
|
})
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
|
@ -138,11 +138,12 @@ class PreferencesDlg:
|
||||||
common.open_url_in_browser(self.dialog,'http://www.deluge-torrent.org/test-port.php?port=%s' %activep)
|
common.open_url_in_browser(self.dialog,'http://www.deluge-torrent.org/test-port.php?port=%s' %activep)
|
||||||
|
|
||||||
|
|
||||||
def tray_toggle(self, obj):
|
def tray_toggle(self, widget):
|
||||||
if obj.get_active():
|
is_active = widget.get_active()
|
||||||
self.glade.get_widget("chk_min_on_close").set_sensitive(True)
|
|
||||||
else:
|
self.glade.get_widget("chk_min_on_close").set_sensitive(is_active)
|
||||||
self.glade.get_widget("chk_min_on_close").set_sensitive(False)
|
self.glade.get_widget("chk_lock_tray").set_sensitive(is_active)
|
||||||
|
self.glade.get_widget("txt_tray_passwd").set_sensitive(is_active)
|
||||||
|
|
||||||
|
|
||||||
class PluginDlg:
|
class PluginDlg:
|
||||||
|
|
Loading…
Reference in New Issue