mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
Fix issue that certain modal dialog cannot be dismissed
This commit is contained in:
@@ -413,7 +413,7 @@ int RichMessageDialog::ShowModal()
|
||||
}
|
||||
Layout();
|
||||
|
||||
return wxDialog::ShowModal();
|
||||
return MsgDialog::ShowModal();
|
||||
}
|
||||
|
||||
bool RichMessageDialog::IsCheckBoxChecked() const
|
||||
|
||||
@@ -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