Skip to content

Commit

Permalink
Remove BambuStudio-SoftFever migration code
Browse files Browse the repository at this point in the history
  • Loading branch information
SoftFever committed Oct 29, 2023
1 parent 9901266 commit 457b847
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/slic3r/GUI/GUI_App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2096,15 +2096,7 @@ void GUI_App::init_app_config()
data_dir_path = boost::filesystem::path(data_dir());
#endif
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 {
m_datadir_redefined = true;
Expand Down

0 comments on commit 457b847

Please sign in to comment.