Destroy current image

This commit is contained in:
Milan Nikolic
2026-06-25 11:26:03 +02:00
parent e1134cd902
commit 4e2f78026d
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -167,6 +167,7 @@ func previewMessage(ih iup.Ihandle, s string, i int, p any) int {
hasCover = true
iup.GetHandle("PreviewInfo").SetAttribute("TITLE", fmt.Sprintf("%s (%dx%d)", img.SizeHuman, img.Width, img.Height))
} else {
iup.Destroy(iup.GetHandle("cover"))
hasCover = false
iup.GetHandle("PreviewInfo").SetAttribute("TITLE", "")