Correct single flatpak uninstalls

Make it so that single flatpak uninstalls set the main toolbar view to non sensitive
This commit is contained in:
heliguy
2023-09-05 03:48:15 -04:00
parent 5bb9d9ed7d
commit ffbff4627a

View File

@@ -127,6 +127,7 @@ class FlattoolGuiWindow(Adw.ApplicationWindow):
handler_id = self.connect('close-request', lambda event: True) # Make window unable to close
self.main_progress_bar.set_visible(True)
self.main_toolbar_view.set_sensitive(False)
def uninstall_callback(*_args):
if self.uninstall_success:
@@ -138,6 +139,7 @@ class FlattoolGuiWindow(Adw.ApplicationWindow):
self.should_pulse = False
self.refresh_list_of_flatpaks(None, False)
self.disconnect(handler_id)
self.main_toolbar_view.set_sensitive(True)
def thread_func(*_args):
try: