diff --git a/src/user_data_page/data_box.blp b/src/user_data_page/data_box.blp index baf5b5a..6cbd9d9 100644 --- a/src/user_data_page/data_box.blp +++ b/src/user_data_page/data_box.blp @@ -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 { diff --git a/src/user_data_page/data_subpage.py b/src/user_data_page/data_subpage.py index 1a42364..3c1e4c8 100644 --- a/src/user_data_page/data_subpage.py +++ b/src/user_data_page/data_subpage.py @@ -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()