Skip to content

Commit

Permalink
fix(config): fix config migration (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
4o3F committed Feb 14, 2024
1 parent e1597c7 commit ecfd51a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/tauri/src/utils/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub fn init_config() -> Result<()> {
app_dir = Some(_app_dir);
}));

if let (Some(app_dir), Some(old_app_dir)) = (old_app_dir, app_dir) {
if let (Some(app_dir), Some(old_app_dir)) = (app_dir, old_app_dir) {
if !app_dir.exists() && old_app_dir.exists() && migrate_dialog() {
if let Err(e) = do_config_migration(&old_app_dir, &app_dir) {
super::dialog::error_dialog(format!("failed to do migration: {:?}", e))
Expand Down

0 comments on commit ecfd51a

Please sign in to comment.