mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 17:45:58 +08:00
ConfigWizard: Fix incorrent wizard run after a language change
This commit is contained in:
parent
e783e00578
commit
5fd2164612
@ -101,6 +101,7 @@ public:
|
|||||||
|
|
||||||
// Returns true if the user's data directory comes from before Slic3r 1.40.0 (no updating)
|
// Returns true if the user's data directory comes from before Slic3r 1.40.0 (no updating)
|
||||||
bool legacy_datadir() const { return m_legacy_datadir; }
|
bool legacy_datadir() const { return m_legacy_datadir; }
|
||||||
|
bool set_legacy_datadir(bool value) { m_legacy_datadir = value; }
|
||||||
|
|
||||||
// Get the Slic3r version check url.
|
// Get the Slic3r version check url.
|
||||||
// This returns a hardcoded string unless it is overriden by "version_check_url" in the ini file.
|
// This returns a hardcoded string unless it is overriden by "version_check_url" in the ini file.
|
||||||
|
@ -835,7 +835,9 @@ bool ConfigWizard::run(PresetBundle *preset_bundle, const PresetUpdater *updater
|
|||||||
{
|
{
|
||||||
BOOST_LOG_TRIVIAL(info) << "Running ConfigWizard, reason: " << p->run_reason;
|
BOOST_LOG_TRIVIAL(info) << "Running ConfigWizard, reason: " << p->run_reason;
|
||||||
if (ShowModal() == wxID_OK) {
|
if (ShowModal() == wxID_OK) {
|
||||||
p->apply_config(GUI::get_app_config(), preset_bundle, updater);
|
auto *app_config = GUI::get_app_config();
|
||||||
|
p->apply_config(app_config, preset_bundle, updater);
|
||||||
|
app_config->set_legacy_datadir(false);
|
||||||
BOOST_LOG_TRIVIAL(info) << "ConfigWizard applied";
|
BOOST_LOG_TRIVIAL(info) << "ConfigWizard applied";
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user