mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 11:17:51 -06:00
Remove BambuStudio-SoftFever
migration code
This commit is contained in:
parent
99012660c9
commit
457b847aee
1 changed files with 1 additions and 9 deletions
|
@ -2096,14 +2096,6 @@ void GUI_App::init_app_config()
|
||||||
data_dir_path = boost::filesystem::path(data_dir());
|
data_dir_path = boost::filesystem::path(data_dir());
|
||||||
#endif
|
#endif
|
||||||
if (!boost::filesystem::exists(data_dir_path)){
|
if (!boost::filesystem::exists(data_dir_path)){
|
||||||
auto older_data_dir = data_dir_path.parent_path() / "BambuStudio-SoftFever";
|
|
||||||
if(boost::filesystem::exists(older_data_dir)){
|
|
||||||
copy_directory_recursively(older_data_dir,data_dir_path);
|
|
||||||
boost::system::error_code ec;
|
|
||||||
boost::filesystem::rename(data_dir_path / "BambuStudio.conf", data_dir_path / "OrcaSlicer.conf", ec);
|
|
||||||
boost::filesystem::rename(data_dir_path / "BambuStudio.conf.bak", data_dir_path / "OrcaSlicer.conf.bak", ec);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
boost::filesystem::create_directory(data_dir_path);
|
boost::filesystem::create_directory(data_dir_path);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue