Use Blueprint menu item shorthands

This commit is contained in:
kramo
2023-10-22 22:36:14 +02:00
parent a48841e5cb
commit 9557caecbc
2 changed files with 16 additions and 74 deletions

View File

@@ -99,38 +99,16 @@ template $Game : Box {
menu game_options {
section {
item {
label: _("Edit");
action: "app.edit_game";
}
item {
label: _("Hide");
action: "app.hide_game";
}
item {
label: _("Remove");
action: "app.remove_game";
}
item (_("Edit"), "app.edit_game")
item (_("Hide"), "app.hide_game")
item (_("Remove"), "app.remove_game")
}
}
menu hidden_game_options {
section {
item {
label: _("Edit");
action: "app.edit_game";
}
item {
label: _("Unhide");
action: "app.hide_game";
}
item {
label: _("Remove");
action: "app.remove_game";
}
item (_("Edit"), "app.edit_game")
item (_("Unhide"), "app.hide_game")
item (_("Remove"), "app.remove_game")
}
}