Skip to content

Commit d92c629

Browse files
committed
Fix for crash on changing backup folder location.
1 parent d0b9972 commit d92c629

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

MainWindow.xaml.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,14 @@ private void BtnBackupFolder_Click(object sender, RoutedEventArgs e)
10211021
}
10221022
txtBackupFolder.Text = folderName;
10231023
backupDirPath = folderName;
1024+
if (!Directory.Exists($@"{backupDirPath}\worlds"))
1025+
{
1026+
Directory.CreateDirectory($@"{backupDirPath}\worlds");
1027+
}
1028+
if (!Directory.Exists($@"{backupDirPath}\characters"))
1029+
{
1030+
Directory.CreateDirectory($@"{backupDirPath}\characters");
1031+
}
10241032
Properties.Settings.Default.BackupFolder = folderName;
10251033
Properties.Settings.Default.Save();
10261034
loadBackups();

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@
5151
// You can specify all the values or you can default the Build and Revision Numbers
5252
// by using the '*' as shown below:
5353
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("0.1.3.0")]
55-
[assembly: AssemblyFileVersion("0.1.3.0")]
54+
[assembly: AssemblyVersion("0.1.4.0")]
55+
[assembly: AssemblyFileVersion("0.1.4.0")]

0 commit comments

Comments
 (0)