Blank image when no mode is selected.

This commit is contained in:
2020-06-12 17:46:24 +02:00
parent c6b3f65b35
commit fc808a6c28
3 changed files with 12 additions and 6 deletions

View File

@@ -98,7 +98,6 @@ proc updateImage(image: Image): bool =
if imageProvider.mode == Mode.None:
log "No display mode"
label.notify "No mode selected"
return true
var wWidth, wHeight: int
window.getSize(wWidth, wHeight)
@@ -110,7 +109,8 @@ proc updateImage(image: Image): bool =
return
image.setFromFile(op.file)
label.notify
if imageProvider.mode != Mode.None:
label.notify
except:
let
e = getCurrentException()