diff --git a/JMMServer/ServerSettings.cs b/JMMServer/ServerSettings.cs index af8c93a3d..8b1e03d1c 100644 --- a/JMMServer/ServerSettings.cs +++ b/JMMServer/ServerSettings.cs @@ -182,13 +182,16 @@ public static void LoadSettingsFromFile(string tmp_setting_file, bool delete_tmp } Utils.GrantAccess(ApplicationPath); disabledSave = false; + // Migrate sqlite db file if necessary if (DatabaseFile.Contains(programlocation)) { string dbname = Path.GetFileName(DatabaseFile); DatabaseFile = Path.Combine(ApplicationPath, dbname); } + SaveSettings(); + foreach (MigrationDirectory md in migrationdirs) { if (!md.SafeMigrate()) @@ -413,8 +416,6 @@ private static void WaitForMigrationThenRestart() if (File.Exists(applicationPath)) { - MessageBox.Show("Application path = " + applicationPath); - ProcessStartInfo Info = new ProcessStartInfo(); Info.Arguments = "/C ping 127.0.0.1 -n 2 && \"" + applicationPath + "\""; Info.WindowStyle = ProcessWindowStyle.Hidden; diff --git a/JMMServer/UI/AboutForm.xaml b/JMMServer/UI/AboutForm.xaml index b2226bcc7..713c72964 100644 --- a/JMMServer/UI/AboutForm.xaml +++ b/JMMServer/UI/AboutForm.xaml @@ -103,7 +103,7 @@ - + \ No newline at end of file