Skip to content

Commit

Permalink
Follow-up 6effa30 : Fixed a crash of stand-along GcodeViewer
Browse files Browse the repository at this point in the history
when open/close Preferences
  • Loading branch information
YuSanka committed Feb 15, 2021
1 parent 125fcd0 commit b166bd7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/slic3r/GUI/Preferences.cpp
Expand Up @@ -388,9 +388,10 @@ void PreferencesDialog::accept()
app_config->set(it->first, it->second);

app_config->save();

wxGetApp().set_label_clr_sys(m_sys_colour->GetColour());
wxGetApp().set_label_clr_modified(m_mod_colour->GetColour());
if (wxGetApp().is_editor()) {
wxGetApp().set_label_clr_sys(m_sys_colour->GetColour());
wxGetApp().set_label_clr_modified(m_mod_colour->GetColour());
}

EndModal(wxID_OK);

Expand Down

0 comments on commit b166bd7

Please sign in to comment.