diff --git a/PraiseTheSave/Form1.cs b/PraiseTheSave/Form1.cs
index 6294ed8..89c21ce 100644
--- a/PraiseTheSave/Form1.cs
+++ b/PraiseTheSave/Form1.cs
@@ -101,10 +101,14 @@ public void refreshInfo()
{
string backupDir = PraiseTheSave.Properties.Settings.Default.SaveLocation;
backupFolderLabel.Text = backupDir;
- backupFolderSizeLabel.Text =
+ if (Directory.Exists(backupDir))
+ {
+ backupFolderSizeLabel.Text =
"Size of the backup folder is " +
(DirSize(new DirectoryInfo(backupDir)) / 1024.0 / 1024.0).ToString("0.00")
+ "Mb";
+ }
+
saveAmountInput.Value = PraiseTheSave.Properties.Settings.Default.SaveAmount;
saveIntervalInput.Value = PraiseTheSave.Properties.Settings.Default.SaveInterval;
@@ -177,6 +181,14 @@ public void doBackup(object sender, EventArgs e)
string ds3destination = PraiseTheSave.Properties.Settings.Default.SaveLocation + @"\ds3\";
+ if (!Directory.Exists(PraiseTheSave.Properties.Settings.Default.SaveLocation))
+ {
+ Directory.CreateDirectory(PraiseTheSave.Properties.Settings.Default.SaveLocation);
+ }
+
+
+
+
string ds1save = PraiseTheSave.Properties.Settings.Default.ds1location;
if (Directory.Exists(ds1save))
{
diff --git a/PraiseTheSave/PraiseTheSave.csproj b/PraiseTheSave/PraiseTheSave.csproj
index dc89285..1c804c1 100644
--- a/PraiseTheSave/PraiseTheSave.csproj
+++ b/PraiseTheSave/PraiseTheSave.csproj
@@ -12,20 +12,24 @@
v4.5.2
512
true
- publish\
+ true
+ C:\Users\dkrei\Desktop\PraiseTheSave\
true
- Disk
- false
+ Web
+ true
Foreground
7
Days
false
false
true
- 0
+ https://github.com/lucidlemon/PraiseTheSave/
+ true
+ publish.htm
+ 1
1.0.0.%2a
- false
false
+ true
true
@@ -47,6 +51,22 @@
prompt
4
+
+ 5C3C8CB2FB7D07BE15A83574C2DB49C482F18B09
+
+
+ PraiseTheSave_TemporaryKey.pfx
+
+
+ true
+
+
+ true
+
+
+ sunbro_logo.ico
+
+
..\packages\DotNetZip.1.9.8\lib\net20\Ionic.Zip.dll
@@ -86,6 +106,7 @@
Resources.resx
+
SettingsSingleFileGenerator
Settings.Designer.cs
@@ -111,6 +132,9 @@
false
+
+
+