window: Add option to show hidden games

This commit is contained in:
kramo
2025-11-29 22:57:09 +01:00
parent 49494063d7
commit 68e663e048
2 changed files with 26 additions and 15 deletions

View File

@@ -12,6 +12,11 @@ template $Window: Adw.ApplicationWindow {
action: "action(win.search)";
}
Shortcut {
trigger: "<Control>h";
action: "action(win.show-hidden)";
}
Shortcut {
trigger: "<Control>w";
action: "action(window.close)";
@@ -84,6 +89,10 @@ template $Window: Adw.ApplicationWindow {
target: "last_played";
}
}
section {
item (_("Show Hidden Games"), "win.show-hidden")
}
};
}
}
@@ -112,7 +121,7 @@ template $Window: Adw.ApplicationWindow {
BoolFilter {
expression: expr item as <$Game>.hidden;
invert: true;
invert: bind template.show-hidden inverted;
}
BoolFilter {