mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 05:47:50 +00:00
remove some useless code
This commit is contained in:
parent
53fd0a57ee
commit
efe2c06347
@ -332,10 +332,7 @@ class GtkUI(GtkPluginBase):
|
|||||||
self.store.clear()
|
self.store.clear()
|
||||||
for watchdir_id, watchdir in self.watchdirs.iteritems():
|
for watchdir_id, watchdir in self.watchdirs.iteritems():
|
||||||
self.store.append([watchdir_id, watchdir['enabled'], watchdir['path']])
|
self.store.append([watchdir_id, watchdir['enabled'], watchdir['path']])
|
||||||
if False: #self.watchdirs:
|
# Disable the remove and edit buttons, because nothing in the store is selected
|
||||||
self.glade.get_widget('remove_button').set_sensitive(True)
|
self.glade.get_widget('remove_button').set_sensitive(False)
|
||||||
self.glade.get_widget('edit_button').set_sensitive(True)
|
self.glade.get_widget('edit_button').set_sensitive(False)
|
||||||
else:
|
|
||||||
self.glade.get_widget('remove_button').set_sensitive(False)
|
|
||||||
self.glade.get_widget('edit_button').set_sensitive(False)
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user