Fix data box install button being made visible when selection mode is disabled

This commit is contained in:
heliguy4599
2024-10-15 15:09:52 -04:00
parent 593225e349
commit 292ca58b6b
2 changed files with 1 additions and 1 deletions

View File

@@ -66,7 +66,6 @@ template $DataBox : ListBox {
Button install_button {
icon-name: "arrow-pointing-at-line-down-symbolic";
tooltip-text: _("Attempt to Install");
visible: bind check_button.visible inverted;
styles ["flat", "circular"]
}
Button trash_button {

View File

@@ -86,6 +86,7 @@ class DataSubpage(Gtk.Stack):
GLib.idle_add(lambda *_, box=box: box.check_button.set_active(False))
GLib.idle_add(lambda *_, box=box: box.check_button.set_visible(is_enabled))
GLib.idle_add(lambda *_, box=box: box.install_button.set_visible(box.is_leftover and not is_enabled))
self.selected_boxes.clear()