ENH: do not add L prefix to empty string

Change-Id: I0fc7f57baf256452645be497020d75ffaf9c20f4
This commit is contained in:
Arthur authored and Lane.Wei committed 2022-12-15 04:38:15 -05:00
1 parent 45de1d8368
commit 4419703f41
17 files changed
+38 -38

No files matched your search

+3 -3
View File
@@ -2350,11 +2350,11 @@ void MainFrame::init_menubar_as_editor()
//});
//parent_menu->Insert(0, about_item);
append_menu_item(
parent_menu, wxID_ANY, _L(about_title), _L(""),
parent_menu, wxID_ANY, _L(about_title), "",
[this](wxCommandEvent &) { Slic3r::GUI::about();},
"", nullptr, []() { return true; }, this, 0);
append_menu_item(
parent_menu, wxID_ANY, _L("Preferences") + "\tCtrl+,", _L(""),
parent_menu, wxID_ANY, _L("Preferences") + "\tCtrl+,", "",
[this](wxCommandEvent &) {
PreferencesDialog dlg(this);
dlg.ShowModal();
@@ -2381,7 +2381,7 @@ void MainFrame::init_menubar_as_editor()
//BBS add Preference
append_menu_item(
m_topbar->GetTopMenu(), wxID_ANY, _L("Preferences") + "\tCtrl+P", _L(""),
m_topbar->GetTopMenu(), wxID_ANY, _L("Preferences") + "\tCtrl+P", "",
[this](wxCommandEvent &) {
PreferencesDialog dlg(this);
dlg.ShowModal();