mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 00:45:55 +08:00
Follow-up 6effa3032231088a0da5d882666c4ac7451b9223 : 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();
|
||||
|
||||
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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user