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