Project tree: Setting the startup class does not crash anymore when forms class files are visible.

[DEVELOPMENT ENVIRONMENT]
* BUG: Project tree: Setting the startup class does not crash anymore when forms class files are visible.
This commit is contained in:
gambas 2022-01-12 22:02:04 +01:00
parent ef82508d31
commit 1a01cf7e57

View file

@ -296,10 +296,12 @@ Private Sub AddFile(sDir As String, sFile As String, Optional bAfter As Boolean,
Try hStat = Stat(sPath)
If Error Then Return
With $hTree.Add(sKey, sFile, GetFileIcon(sPath,, hStat,, True), sParent)
.Font = $hTree.Font
.Font.Grade -= 2
End With
If Not $hTree.Exist(sKey) Then
With $hTree.Add(sKey, sFile, GetFileIcon(sPath,, hStat,, True), sParent)
.Font = $hTree.Font
.Font.Grade -= 2
End With
Endif
Endif
Endif