save empty manifest directly after prompting to create one

This commit is contained in:
Carson McManus 2021-08-29 20:17:17 -04:00
parent b941415715
commit bb6c733999

View file

@ -174,6 +174,7 @@ fn main() {
std::fs::create_dir_all(mafiles_dir).expect("failed to create directory"); std::fs::create_dir_all(mafiles_dir).expect("failed to create directory");
manifest = accountmanager::Manifest::new(path.as_path()); manifest = accountmanager::Manifest::new(path.as_path());
manifest.save(&None).expect("Failed to save manifest");
} else { } else {
match accountmanager::Manifest::load(path.as_path()) { match accountmanager::Manifest::load(path.as_path()) {
Ok(m) => { Ok(m) => {