Make filter window apply instantly on change

This commit is contained in:
Heliguy
2024-02-07 04:02:27 -05:00
parent fedd3e0301
commit 76bb928e6f
4 changed files with 129 additions and 150 deletions

View File

@@ -10,21 +10,7 @@ template $FilterWindow: Adw.Window {
Adw.ToolbarView main_toolbar_view {
[top]
HeaderBar header_bar {
show-title-buttons: false;
[start]
Button cancel_button {
label: _("Cancel");
}
[end]
Button apply_button {
label: _("Apply");
styles [
"suggested-action"
]
}
show-title-buttons: true;
}
content: Adw.ToastOverlay toast_overlay {
@@ -71,12 +57,12 @@ template $FilterWindow: Adw.Window {
}
Adw.ExpanderRow remotes_expander {
enable-expansion: false;
enable-expansion: true;
title: _("Filter by Remotes");
}
Adw.ExpanderRow runtimes_expander {
enable-expansion: false;
enable-expansion: true;
title: _("Filter by Runtimes");
}
}

View File

@@ -178,7 +178,13 @@ template $WarehouseWindow: Adw.ApplicationWindow {
Adw.StatusPage no_matches {
icon-name: "funnel-symbolic";
title: _("No Flatpaks Match Filters");
description: _("No installed Flatpak matches any of the currently applied filters");
description: _("No installed Flatpak matches all of the currently applied filters");
[child]
Button reset_filters_button {
label: _("Reset Filters");
halign: center;
styles["pill"]
}
}
Adw.StatusPage no_results {