mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 23:31:13 -06:00
Implemented a "Reset user profile" on the first page of the configuration
wizard if the wizard is opened from the menu. This allows one to reinstall the bundled printer profile cleanly. Fixed a bug when loading a config bundle as a config: The config bundle should not be unpacked into the user profile directory.
This commit is contained in:
parent
5a768ddd7b
commit
0b6bd3cbde
8 changed files with 91 additions and 26 deletions
|
@ -100,6 +100,8 @@ PresetCollection::arrayref()
|
|||
PresetBundle();
|
||||
~PresetBundle();
|
||||
|
||||
void reset(bool delete_files);
|
||||
|
||||
void setup_directories()
|
||||
%code%{
|
||||
try {
|
||||
|
@ -128,7 +130,7 @@ PresetCollection::arrayref()
|
|||
size_t load_configbundle(const char *path)
|
||||
%code%{
|
||||
try {
|
||||
RETVAL = THIS->load_configbundle(path);
|
||||
RETVAL = THIS->load_configbundle(path, PresetBundle::LOAD_CFGBNDLE_SAVE);
|
||||
} catch (std::exception& e) {
|
||||
croak("Loading of a config bundle %s failed:\n%s\n", path, e.what());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue