Verified Kaydet (Commit) d5031d20 authored tarafından Erdem Ersoy's avatar Erdem Ersoy

Fix actions after implement sorting (2/X)

* Fix "Uninstall" menu item function
üst 78f3e7ab
......@@ -244,7 +244,7 @@ class MainWindow(object):
if len(search_entry_text) == 0 and not self.HeaderBarShowButton.get_active():
return True
if len(search_entry_text) == 0 and self.HeaderBarShowButton.get_active():
if UninstallWindow.at_uninstallation or UpdateAllWindow.at_updating:
if UpdateAllWindow.at_updating:
return True
else:
return is_installed
......@@ -253,7 +253,7 @@ class MainWindow(object):
return True
elif (real_name.lower().count(search_entry_text.lower()) > 0 or name.lower().count(
search_entry_text.lower()) > 0) and self.HeaderBarShowButton.get_active():
if UninstallWindow.at_uninstallation or UpdateAllWindow.at_updating:
if UpdateAllWindow.at_updating:
return True
else:
return is_installed
......@@ -576,8 +576,12 @@ class MainWindow(object):
InfoWindow(self.Application, info_str, ref)
def on_uninstall(self, menu_item):
UninstallWindow.at_uninstallation = True