@@ -9903,6 +9903,11 @@ Public Class MainForm
9903
9903
End Sub
9904
9904
9905
9905
Sub SaveDTProj()
9906
+ DynaLog.LogMessage("Checking if project files exist...")
9907
+ If Not File.Exists(projPath & "\settings\project.ini") Then
9908
+ DynaLog.LogMessage("No project settings file exists. Exiting...")
9909
+ Exit Sub
9910
+ End If
9906
9911
If ProjectValueLoadForm.RichTextBox1.Text = "" Then ProjectValueLoadForm.RichTextBox1.Text = File.ReadAllText(projPath & "\settings\project.ini", UTF8)
9907
9912
' Clear Rich Text Boxes
9908
9913
'ProjectValueLoadForm.RichTextBox2.Text = ""
@@ -10033,6 +10038,9 @@ Public Class MainForm
10033
10038
''' <remarks>The program, attending to the parameters shown above, will unload the project</remarks>
10034
10039
Sub UnloadDTProj(IsBeingClosed As Boolean, SaveProject As Boolean, UnmountImg As Boolean)
10035
10040
DynaLog.LogMessage("Preparing to unload project...")
10041
+ DynaLog.LogMessage("- Is the program being closed? " & If(IsBeingClosed, "Yes", "No"))
10042
+ DynaLog.LogMessage("- Will the project be saved? " & If(SaveProject, "Yes", "No"))
10043
+ DynaLog.LogMessage("- Will the image be unmounted? " & If(UnmountImg, "Yes", "No"))
10036
10044
If ImgBW.IsBusy Then
10037
10045
DynaLog.LogMessage("Background processes are busy. Ask the user what they want to do")
10038
10046
Dim msg As String = ""
@@ -10151,7 +10159,9 @@ Public Class MainForm
10151
10159
End If
10152
10160
If SaveProject And Not (OnlineManagement Or OfflineManagement) Then
10153
10161
DynaLog.LogMessage("Saving project configuration...")
10154
- SaveDTProj()
10162
+ If File.Exists(projPath & "\settings\project.ini") Then
10163
+ SaveDTProj()
10164
+ End If
10155
10165
End If
10156
10166
If UnmountImg Then
10157
10167
DynaLog.LogMessage("The image will be unmounted...")
0 commit comments