pre-commit: Add config
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
import sys
|
||||
|
||||
from gi.events import GLibEventLoopPolicy
|
||||
from gi.events import GLibEventLoopPolicy # pyright: ignore[reportMissingImports]
|
||||
|
||||
from .application import Application
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ python.install_sources(
|
||||
'__init__.py',
|
||||
'__main__.py',
|
||||
'application.py',
|
||||
'games.py',
|
||||
'gamepads.py',
|
||||
'games.py',
|
||||
),
|
||||
subdir: 'cartridges',
|
||||
)
|
||||
|
||||
@@ -130,7 +130,15 @@ template $Window: Adw.ApplicationWindow {
|
||||
content: Adw.ToastOverlay toast_overlay {
|
||||
child: Adw.ViewStack {
|
||||
enable-transitions: true;
|
||||
visible-child-name: bind $_if_else(grid.model as <NoSelection>.n-items, "grid", $_if_else(template.search-text, "empty-search", $_if_else(template.show-hidden, "empty-hidden", "empty") as <string>) as <string>) as <string>;
|
||||
visible-child-name: bind $_if_else(
|
||||
grid.model as <NoSelection>.n-items,
|
||||
"grid",
|
||||
$_if_else(
|
||||
template.search-text,
|
||||
"empty-search",
|
||||
$_if_else(template.show-hidden, "empty-hidden", "empty") as <string>
|
||||
) as <string>
|
||||
) as <string>;
|
||||
|
||||
Adw.ViewStackPage {
|
||||
name: "grid";
|
||||
|
||||
Reference in New Issue
Block a user