mirror of
https://github.com/morgan9e/warehouse
synced 2026-04-14 00:04:08 +09:00
Fix data box install button being made visible when selection mode is disabled
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user