Skip to content

Commit

Permalink
[Fix] Fixed additional recents list exception
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingWonders committed Feb 20, 2025
1 parent 32f1325 commit 3df3da1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MainForm.vb
Original file line number Diff line number Diff line change
Expand Up @@ -19127,6 +19127,10 @@ Public Class MainForm
MsgBox("No items are present in the Recents list.")
Exit Sub
End If
If (itemOrder + 1) > RecentList.Count Then
DynaLog.LogMessage("Item with index " & itemOrder & " is not yet declared in the Recents list. Exiting...")
Exit Sub
End If
If RecentList(itemOrder).ProjPath <> "" And File.Exists(RecentList(itemOrder).ProjPath) Then
DynaLog.LogMessage("Selected item is not bogus and exists. Loading project...")
If isProjectLoaded Then UnloadDTProj(False, If(OnlineManagement Or OfflineManagement, False, True), False)
Expand Down

0 comments on commit 3df3da1

Please sign in to comment.