Skip to content

Commit cbd478a

Browse files
committed
fix some bug
1 parent 2db067f commit cbd478a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

DataLoader.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public static async Task LoadFile(string filename, bool re = false)
122122
dialog.ShowDialog();
123123
await t;
124124
ModLoader.Initalize();
125-
if(Main.Settings.LoadPos == "")
125+
if(Main.Settings.LoadPos == "" && !re)
126126
{
127127
var result = MessageBox.Show(Application.Current.FindResource("LoadPath").ToString(),
128128
Application.Current.FindResource("LoadPath").ToString(), MessageBoxButton.YesNo, MessageBoxImage.Question);
@@ -149,6 +149,7 @@ public static async Task<bool> DoSaveDialog()
149149
await SaveFile(dlg.FileName);
150150
return true;
151151
}
152+
else await LoadFile(DataPath, true);
152153
return false;
153154
}
154155
public static async Task SaveFile(string filename)
@@ -223,6 +224,7 @@ public static async Task SaveFile(string filename)
223224
});
224225
dialog.ShowDialog();
225226
await t;
227+
await LoadFile(DataPath, true);
226228
ModLoader.LoadFiles();
227229
if (Main.Settings.SavePos == "")
228230
{

0 commit comments

Comments
 (0)