1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-11 08:04:25 +00:00

Follow-up 6effa30322 : Fixed a crash of stand-along GcodeViewer

when open/close Preferences
This commit is contained in:
YuSanka
2021-02-15 15:57:14 +01:00
parent 125fcd0623
commit b166bd7845
+4 -3
View File
@@ -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);