Follow-up 6effa30322
: Fixed a crash of stand-along GcodeViewer
when open/close Preferences
This commit is contained in:
parent
125fcd0623
commit
b166bd7845
@ -388,9 +388,10 @@ void PreferencesDialog::accept()
|
||||
app_config->set(it->first, it->second);
|
||||
|
||||
app_config->save();
|
||||
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user