mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-17 10:15:56 +08:00
Do not reset sl1 import dialog settings between imports
This commit is contained in:
parent
fb429c1e23
commit
1c940ef145
@ -122,7 +122,9 @@ public:
|
|||||||
std::string err;
|
std::string err;
|
||||||
ConfigSubstitutions config_substitutions;
|
ConfigSubstitutions config_substitutions;
|
||||||
|
|
||||||
priv(Plater *plt) : plater{plt} {}
|
ImportDlg import_dlg;
|
||||||
|
|
||||||
|
priv(Plater *plt) : plater{plt}, import_dlg{plt} {}
|
||||||
};
|
};
|
||||||
|
|
||||||
SLAImportJob::SLAImportJob(std::shared_ptr<ProgressIndicator> pri, Plater *plater)
|
SLAImportJob::SLAImportJob(std::shared_ptr<ProgressIndicator> pri, Plater *plater)
|
||||||
@ -176,14 +178,12 @@ void SLAImportJob::prepare()
|
|||||||
{
|
{
|
||||||
reset();
|
reset();
|
||||||
|
|
||||||
ImportDlg dlg{p->plater};
|
if (p->import_dlg.ShowModal() == wxID_OK) {
|
||||||
|
auto path = p->import_dlg.get_path();
|
||||||
if (dlg.ShowModal() == wxID_OK) {
|
|
||||||
auto path = dlg.get_path();
|
|
||||||
auto nm = wxFileName(path);
|
auto nm = wxFileName(path);
|
||||||
p->path = !nm.Exists(wxFILE_EXISTS_REGULAR) ? "" : nm.GetFullPath();
|
p->path = !nm.Exists(wxFILE_EXISTS_REGULAR) ? "" : nm.GetFullPath();
|
||||||
p->sel = dlg.get_selection();
|
p->sel = p->import_dlg.get_selection();
|
||||||
p->win = dlg.get_marchsq_windowsize();
|
p->win = p->import_dlg.get_marchsq_windowsize();
|
||||||
p->config_substitutions.clear();
|
p->config_substitutions.clear();
|
||||||
} else {
|
} else {
|
||||||
p->path = "";
|
p->path = "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user