mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
begin global actions config implementation
This commit is contained in:
parent
f803d89f52
commit
9e481f78ce
9 changed files with 58 additions and 68 deletions
|
|
@ -60,13 +60,22 @@ impl Menu {
|
|||
|
||||
// Main > Tool
|
||||
let main_tool = gio::Menu::new();
|
||||
main_tool.append(Some("Debug"), Some(&detailed_action_name(browser_action.debug())));
|
||||
|
||||
{ // Debug
|
||||
let (group, action, _, _) = crate::action::APP_BROWSER_WIDGET_DEBUG;
|
||||
main_tool.append(Some("Debug"), Some(&gformat!("{group}.{action}")));
|
||||
}
|
||||
|
||||
main_tool.append(Some("Profile"), Some(&detailed_action_name(browser_action.profile())));
|
||||
main_tool.append(Some("About"), Some(&detailed_action_name(browser_action.about())));
|
||||
|
||||
main.append_submenu(Some("Tool"), &main_tool);
|
||||
|
||||
main.append(Some("Quit"), Some(&detailed_action_name(browser_action.quit())));
|
||||
{
|
||||
// Quit
|
||||
let (group, action, _, _) = crate::action::APP_BROWSER_WIDGET_CLOSE;
|
||||
main.append(Some("Quit"), Some(&gformat!("{group}.{action}")));
|
||||
}
|
||||
|
||||
// Result
|
||||
Rc::new(Self { widget:Widget::new_rc(&main) })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue