merge config from previous versions

This commit is contained in:
Salem Yaslem 2021-02-08 04:29:45 +03:00
parent c1ec746087
commit 3a7756cb23
2 changed files with 3 additions and 2 deletions

View File

@ -18,12 +18,14 @@ pub fn initialize() -> PathBuf {
std::fs::create_dir_all(&config_directories).unwrap_or_default();
std::fs::File::create(&config_path).unwrap();
default();
} else {
merge_previous_version();
}
config_path
}
pub fn merge_previous_version() -> Option<PathBuf> {
fn merge_previous_version() -> Option<PathBuf> {
let config_path: PathBuf = Path::new(&get_user_data_dir().unwrap())
.join("blue-recorder")
.join("config.ini");

View File

@ -21,7 +21,6 @@ fn main() {
}
let builder: Builder = Builder::from_file(Path::new("windows/ui.glade"));
config_management::merge_previous_version();
config_management::initialize();
// get Objects from UI