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
@@ -271,6 +271,7 @@ func onRemove(ih iup.Ihandle) int {
// clearPreview resets the preview state and repaints the canvas to its empty state.
func clearPreview() {
iup.Destroy(iup.GetHandle("cover"))
hasCover = false
previewPath = ""
previewPage = 0