Merge branch 'bsteers4-master-patch-14221' into 'master'

Fix MessageView.class

See merge request gambas/gambas!183
This commit is contained in:
Benoît Minisini 2021-02-03 20:35:18 +00:00
commit 54a2a6bf0f

View file

@ -95,22 +95,23 @@ Public Sub Open(Text As String, Optional Icon As Picture)
If $sText = Text Then Return
$hIcon = Icon
If Not Icon Then
Try $hIcon = Picture["icon:/32/warning"]
If Error Then $hIcon = Picture["img/32/warning.png"]
Endif
If Me.Visible Then
$aText.Add(Text)
$aIcon.Add(Icon)
$aIcon.Add($hIcon)
UpdateButton
Return
Endif
$sText = Text
$hIcon = Icon
If Not Icon Then
Try $hIcon = Picture["icon:/32/warning"]
If Error Then $hIcon = Picture["img/32/warning.png"]
Endif
DoOpen
End