summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/nigui/msgbox.nim2
1 files changed, 1 insertions, 1 deletions
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