mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 15:44:12 -06:00
Open menubar item by name with translations
This commit is contained in:
parent
2bb14849f4
commit
5f7a4982f6
4 changed files with 29 additions and 24 deletions
|
@ -379,9 +379,9 @@ void HintDatabase::load_hints_from_file(const boost::filesystem::path& path)
|
|||
wxGetApp().obj_list()->load_shape_object_from_gallery(); }
|
||||
};
|
||||
m_loaded_hints.emplace_back(hint_data);
|
||||
} /*else if (dict["hypertext_type"] == "menubar") {
|
||||
int menu = std::atoi(dict["hypertext_menubar_menu_id"].c_str());
|
||||
int item = std::atoi(dict["hypertext_menubar_item_id"].c_str());
|
||||
} else if (dict["hypertext_type"] == "menubar") {
|
||||
wxString menu(_L("&" + dict["hypertext_menubar_menu_name"]));
|
||||
wxString item(_L(dict["hypertext_menubar_item_name"]));
|
||||
HintData hint_data{ id_string, text1, weight, was_displayed, hypertext_text, follow_text, disabled_tags, enabled_tags, true, documentation_link, [menu, item]() { wxGetApp().mainframe->open_menubar_item(menu, item); } };
|
||||
m_loaded_hints.emplace_back(hint_data);
|
||||
}*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue