fix cleanup button sensitivity issues
This commit is contained in:
parent
fb31fc94f0
commit
dc8978961a
|
@ -527,7 +527,6 @@ _('Connection with peer cannot be established.'))
|
|||
self.pause_button.set_sensitive(False)
|
||||
self.pause_menuitem.set_sensitive(False)
|
||||
self.continue_menuitem.set_sensitive(False)
|
||||
self.cleanup_button.set_sensitive(False)
|
||||
self.remove_menuitem.set_sensitive(False)
|
||||
self.cancel_button.set_sensitive(False)
|
||||
self.cancel_menuitem.set_sensitive(False)
|
||||
|
@ -694,10 +693,6 @@ _('Connection with peer cannot be established.'))
|
|||
|
||||
def show_context_menu(self, event, iter):
|
||||
# change the sensitive propery of the buttons and menuitems
|
||||
if len(self.model) == 0:
|
||||
self.cleanup_button.set_sensitive(False)
|
||||
else:
|
||||
self.cleanup_button.set_sensitive(True)
|
||||
path = None
|
||||
if iter is not None:
|
||||
path = self.model.get_path(iter)
|
||||
|
|
|
@ -18727,7 +18727,6 @@ Maybe I'll refactor later</property>
|
|||
<child>
|
||||
<widget class="GtkButton" id="cleanup_button">
|
||||
<property name="visible">True</property>
|
||||
<property name="sensitive">False</property>
|
||||
<property name="tooltip" translatable="yes">Removes completed, canceled and failed file transfers from the list</property>
|
||||
<property name="can_default">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
|
|
Loading…
Reference in New Issue