mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
Follow-up 6effa30322 : Fixed a crash of stand-along GcodeViewer
when open/close Preferences
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user