mirror of
https://github.com/morgan9e/warehouse
synced 2026-04-14 00:04:08 +09:00
Add refresh lockout to adding remotes
This commit is contained in:
@@ -24,6 +24,7 @@ class AddRemoteDialog(Adw.Dialog):
|
||||
self.apply_button.set_sensitive(False)
|
||||
error = [None]
|
||||
def thread(*args):
|
||||
HostInfo.main_window.add_refresh_lockout("adding remote")
|
||||
cmd = [
|
||||
'flatpak-spawn', '--host',
|
||||
'flatpak', 'remote-add',
|
||||
@@ -45,6 +46,7 @@ class AddRemoteDialog(Adw.Dialog):
|
||||
error[0] = e
|
||||
|
||||
def callback(*args):
|
||||
HostInfo.main_window.remove_refresh_lockout("adding remote")
|
||||
if error[0]:
|
||||
self.parent_page.status_stack.set_visible_child(self.parent_page.main_view)
|
||||
self.apply_button.set_sensitive(True)
|
||||
|
||||
Reference in New Issue
Block a user