From 94b831b6d4d3a9f6231c17805bb02a91e1ba16d7 Mon Sep 17 00:00:00 2001 From: Simon Krauter Date: Thu, 15 Aug 2019 13:08:45 +0200 Subject: Fix #45 --- src/nigui/msgbox.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nigui/msgbox.nim b/src/nigui/msgbox.nim index 596fb12..a524c6d 100755 --- a/src/nigui/msgbox.nim +++ b/src/nigui/msgbox.nim @@ -22,7 +22,7 @@ proc buttonClick(event: ClickEvent) = event.control.parentWindow.dispose() proc msgBox*(parent: Window, message: string, title = "Message", button1 = "OK", button2, button3: string = ""): int {.discardable.} = - const buttonMinWidth = 100.scaleToDpi + let buttonMinWidth = 100.scaleToDpi var window = new MessageBoxWindow window.init() window.title = title -- cgit v1.2.3