mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 12:04:10 +00:00
GTK UI Torrent's options tab.
Set the apply button to sensitive if the value of a spin button changed. This was missing.
This commit is contained in:
parent
a7bd953169
commit
4044f52f77
File diff suppressed because it is too large
Load Diff
@ -71,7 +71,8 @@ class OptionsTab(Tab):
|
||||
"on_button_edit_trackers_clicked": self._on_button_edit_trackers_clicked,
|
||||
"on_chk_move_completed_toggled": self._on_chk_move_completed_toggled,
|
||||
"on_chk_stop_at_ratio_toggled": self._on_chk_stop_at_ratio_toggled,
|
||||
"on_chk_shared_toggled": self._on_chk_shared_toggled
|
||||
"on_chk_shared_toggled": self._on_chk_shared_toggled,
|
||||
"on_spin_value_changed": self._on_spin_value_changed
|
||||
})
|
||||
|
||||
def start(self):
|
||||
@ -233,3 +234,7 @@ class OptionsTab(Tab):
|
||||
def _on_chk_shared_toggled(self, widget):
|
||||
if not self.button_apply.is_sensitive():
|
||||
self.button_apply.set_sensitive(True)
|
||||
|
||||
def _on_spin_value_changed(self, widget):
|
||||
if not self.button_apply.is_sensitive():
|
||||
self.button_apply.set_sensitive(True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user