Move menu models to the game class

This commit is contained in:
kramo
2023-03-25 00:14:37 +01:00
parent 2f869a91ea
commit 41c97e1af7
4 changed files with 10 additions and 47 deletions

View File

@@ -44,7 +44,6 @@ template game : Box {
margin-bottom: 6;
margin-end: 6;
margin-start: 6;
menu-model: game_options;
hexpand: true;
halign: end;

View File

@@ -404,41 +404,3 @@ menu add_games {
}
}
}
menu game_options {
section {
item {
label: _("Edit");
action: "app.edit_details";
}
item {
label: _("Hide");
action: "app.hide_game";
}
item {
label: _("Remove");
action: "app.remove_game";
}
}
}
menu hidden_game_options {
section {
item {
label: _("Edit");
action: "app.edit_details";
}
item {
label: _("Unhide");
action: "app.hide_game";
}
item {
label: _("Remove");
action: "app.remove_game";
}
}
}