mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-03-10 05:17:02 -06:00
Fix issue that certain modal dialog cannot be dismissed
This commit is contained in:
parent
2fa386cbdb
commit
fc8f183151
2 changed files with 2 additions and 2 deletions
|
|
@ -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)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue