mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 00:37:51 -06:00
Some _cosmetic_ fixes :
+ Set wxDEFAULT_DIALOG_STYLE for MsgDialog + Changed Msg text before language changing
This commit is contained in:
parent
d209aaa200
commit
016b5e35b6
3 changed files with 8 additions and 12 deletions
|
@ -649,20 +649,16 @@ void GUI_App::add_config_menu(wxMenuBar *menu)
|
|||
}
|
||||
case ConfigMenuLanguage:
|
||||
{
|
||||
/* Before change application language, let's check unsaved changes
|
||||
/* Before change application language, let's check unsaved changes on 3D-Scene
|
||||
* and draw user's attention to the application restarting after a language change
|
||||
*/
|
||||
wxMessageDialog dialog(nullptr,
|
||||
_(L("Application will be restarted after language change, "
|
||||
"and 3D-Scene will be cleaned.")) + "\n" +
|
||||
_(L("Please, check your changes before.")) + "\n\n" +
|
||||
_(L("Continue anyway?")),
|
||||
_(L("Application will be restarted after language change.")) + "\n" +
|
||||
_(L("3D-Scene will be cleaned.")) + "\n\n" +
|
||||
_(L("Please, check your changes before.")),
|
||||
_(L("Attention!")),
|
||||
wxICON_QUESTION | wxYES_NO | wxNO_DEFAULT);
|
||||
if ( dialog.ShowModal() != wxID_YES)
|
||||
return;
|
||||
|
||||
if (!wxGetApp().check_unsaved_changes())
|
||||
wxICON_QUESTION | wxOK | wxCANCEL);
|
||||
if ( dialog.ShowModal() == wxID_CANCEL)
|
||||
return;
|
||||
|
||||
wxArrayString names;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue