mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Fix issue that certain modal dialog cannot be dismissed
This commit is contained in:
@@ -827,7 +827,7 @@ inline int UnsavedChangesDialog::ShowModal()
|
||||
m_exit_action = Action(result);
|
||||
return 0;
|
||||
}
|
||||
int r = wxDialog::ShowModal();
|
||||
int r = DPIDialog::ShowModal();
|
||||
if (r != wxID_CANCEL && dynamic_cast<::CheckBox*>(FindWindowById(wxID_APPLY))->GetValue()) {
|
||||
wxGetApp().app_config->set(choise_key, std::to_string(int(m_exit_action)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user