mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-27 17:41:59 +08:00
datadir parameter kept when launching new instance
supermerill/SuperSlicer#1450
This commit is contained in:
parent
bf3d3ede8c
commit
c019e648c7
@ -1,6 +1,7 @@
|
||||
#include "Process.hpp"
|
||||
|
||||
#include <libslic3r/AppConfig.hpp>
|
||||
#include <libslic3r/Utils.hpp>
|
||||
|
||||
#include "../GUI/GUI.hpp"
|
||||
// for file_wildcards()
|
||||
@ -49,6 +50,8 @@ static void start_new_slicer_or_gcodeviewer(const NewSlicerInstanceType instance
|
||||
}
|
||||
if (instance_type == NewSlicerInstanceType::Slicer && single_instance)
|
||||
args.emplace_back(L"--single-instance");
|
||||
args.emplace_back(L"--datadir");
|
||||
args.emplace_back(boost::nowide::widen(Slic3r::data_dir().c_str()).c_str());
|
||||
args.emplace_back(nullptr);
|
||||
BOOST_LOG_TRIVIAL(info) << "Trying to spawn a new slicer \"" << into_u8(path) << "\"";
|
||||
// Don't call with wxEXEC_HIDE_CONSOLE, PrusaSlicer in GUI mode would just show the splash screen. It would not open the main window though, it would
|
||||
|
Loading…
x
Reference in New Issue
Block a user