Fix transient-ness of orphans window

Orphans window was being set non sensitive which made the main app window able to be interacted with which is not what I want
This commit is contained in:
heliguy
2023-09-04 22:20:37 -04:00
parent 636e4a5e37
commit 97a94ee052

View File

@@ -282,8 +282,8 @@ class FlattoolGuiWindow(Adw.ApplicationWindow):
should_pulse = False
self.refresh_list_of_flatpaks(None, False)
generate_list(None, False)
nonlocal orphans_window
orphans_window.set_sensitive(True)
nonlocal orphans_toolbar_view
orphans_toolbar_view.set_sensitive(True)
orphans_window.disconnect(handler_id) # Make window able to close
def thread_func(command):
@@ -299,8 +299,8 @@ class FlattoolGuiWindow(Adw.ApplicationWindow):
orphans_progress_bar.set_visible(False)
return 1
nonlocal orphans_window
orphans_window.set_sensitive(False)
nonlocal orphans_toolbar_view
orphans_toolbar_view.set_sensitive(False)
nonlocal handler_id
handler_id = orphans_window.connect('close-request', lambda event: True) # Make window unable to close
nonlocal total_to_install