mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-19 02:13:27 +00:00
Open menubar item by name with translations
This commit is contained in:
@@ -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);
|
||||
}*/
|
||||
|
||||
Reference in New Issue
Block a user