Added menu command Configuration/Language to standalone gcode viewer

This commit is contained in:
enricoturri1966 2020-10-12 08:39:40 +02:00
parent f16ef0643c
commit 21366f56e7
6 changed files with 53 additions and 25 deletions

View file

@ -1212,8 +1212,12 @@ void Preview::update_double_slider_from_canvas(wxKeyEvent & event)
void Preview::load_print_as_fff(bool keep_z_range)
{
#if ENABLE_GCODE_VIEWER
#if ENABLE_GCODE_APP_CONFIG
if (wxGetApp().mainframe == nullptr || wxGetApp().is_recreating_gui())
#else
if (wxGetApp().mainframe == nullptr)
// avoid proessing while mainframe is being constructed
#endif // ENABLE_GCODE_APP_CONFIG
// avoid processing while mainframe is being constructed
return;
#endif // ENABLE_GCODE_VIEWER