Fixed wrong printing of recommended_thin_wall_thickness_description_line

This commit is contained in:
YuSanka 2018-02-26 13:57:36 +01:00
parent f3f78ebc5a
commit e05493bd90
2 changed files with 6 additions and 5 deletions

View File

@ -336,7 +336,7 @@ void add_debug_menu(wxMenuBar *menu, int event_language_change)
} }
} }
}); });
menu->Append(local_menu, _T("&Localization")); menu->Append(local_menu, _(L("&Localization")));
//#endif //#endif
} }

View File

@ -768,14 +768,15 @@ void TabPrint::update()
get_field(el)->toggle(have_wipe_tower); get_field(el)->toggle(have_wipe_tower);
m_recommended_thin_wall_thickness_description_line->SetText( m_recommended_thin_wall_thickness_description_line->SetText(
PresetHints::recommended_thin_wall_thickness(*m_preset_bundle)); from_u8(PresetHints::recommended_thin_wall_thickness(*m_preset_bundle)));
Thaw(); Thaw();
} }
void TabPrint::OnActivate() void TabPrint::OnActivate()
{ {
m_recommended_thin_wall_thickness_description_line->SetText(PresetHints::recommended_thin_wall_thickness(*m_preset_bundle)); m_recommended_thin_wall_thickness_description_line->SetText(
from_u8(PresetHints::recommended_thin_wall_thickness(*m_preset_bundle)));
} }
void TabFilament::build() void TabFilament::build()
@ -1044,7 +1045,7 @@ void TabPrinter::build()
btn->Bind(wxEVT_BUTTON, [this, parent](wxCommandEvent e){ btn->Bind(wxEVT_BUTTON, [this, parent](wxCommandEvent e){
if (m_event_button_browse > 0){ if (m_event_button_browse > 0){
wxCommandEvent event(m_event_button_browse); wxCommandEvent event(m_event_button_browse);
event.SetString(_(L("Button BROWSE was clicked!"))); event.SetString("Button BROWSE was clicked!");
g_wxMainFrame->ProcessWindowEvent(event); g_wxMainFrame->ProcessWindowEvent(event);
} }
// // # look for devices // // # look for devices
@ -1079,7 +1080,7 @@ void TabPrinter::build()
btn->Bind(wxEVT_BUTTON, [this, parent](wxCommandEvent e) { btn->Bind(wxEVT_BUTTON, [this, parent](wxCommandEvent e) {
if (m_event_button_test > 0){ if (m_event_button_test > 0){
wxCommandEvent event(m_event_button_test); wxCommandEvent event(m_event_button_test);
event.SetString(_(L("Button TEST was clicked!"))); event.SetString("Button TEST was clicked!");
g_wxMainFrame->ProcessWindowEvent(event); g_wxMainFrame->ProcessWindowEvent(event);
} }
// my $ua = LWP::UserAgent->new; // my $ua = LWP::UserAgent->new;