mirror of
https://github.com/morgan9e/warehouse
synced 2026-04-14 00:04:08 +09:00
Fix button overlay being visible when it shouldn't be
This commit is contained in:
@@ -14,6 +14,7 @@ template $DowngradeWindow: Adw.Dialog {
|
||||
Overlay {
|
||||
[overlay]
|
||||
Button apply_button {
|
||||
visible: false;
|
||||
valign: end;
|
||||
halign: center;
|
||||
margin-bottom: 12;
|
||||
|
||||
@@ -107,6 +107,7 @@ class DowngradeWindow(Adw.Dialog):
|
||||
row.add_prefix(select)
|
||||
self.versions_group.add(row)
|
||||
self.main_stack.set_visible_child(self.outerbox)
|
||||
self.apply_button.set_visible(True)
|
||||
|
||||
def generate_list(self):
|
||||
task = Gio.Task.new(None, None, lambda *_: self.commits_callback())
|
||||
@@ -143,7 +144,7 @@ class DowngradeWindow(Adw.Dialog):
|
||||
self.loading_label.set_label(_("Downgrading…"))
|
||||
self.set_can_close(False)
|
||||
self.main_stack.set_visible_child(self.loading)
|
||||
self.apply_button.set_sensitive(False)
|
||||
self.apply_button.set_visible(False)
|
||||
|
||||
task = Gio.Task.new(None, None, lambda *_: self.downgrade_callack())
|
||||
task.run_in_thread(lambda *_: self.downgrade_thread())
|
||||
|
||||
Reference in New Issue
Block a user