mirror of
https://github.com/morgan9e/warehouse
synced 2026-04-14 00:04:08 +09:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user