FIX: display of Label and warning dialog

Change-Id: Ib147f28096336b07b033c2e8104a56f5c28b7d93
This commit is contained in:
tao.jin 2023-02-08 11:08:26 +08:00 committed by Lane.Wei
parent 7c728452a2
commit c2eeb2522b
4 changed files with 78 additions and 56 deletions

View file

@ -980,10 +980,8 @@ bool MainFrame::preview_only_hint()
});
confirm_dlg.update_btn_label(_L("Yes"), _L("No"));
auto filename = wxString((m_plater->get_preview_only_filename()).c_str(), wxConvUTF8);
//if size of filename is beyond limit
auto format_filename = confirm_dlg.format_text(filename, FromDIP(240));
confirm_dlg.update_text(format_filename + _L(" will be closed before creating a new model. Do you want to continue?"));
confirm_dlg.update_text(filename + _L(" will be closed before creating a new model. Do you want to continue?"));
confirm_dlg.on_show();
if (preview_only_to_editor) {
m_plater->new_project();