Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff --git a/spryvm/spryui.nim b/spryvm/spryui.nim 2index 37f5329..50440e9 100644 3--- a/spryvm/spryui.nim 4+++ b/spryvm/spryui.nim 5@@ -140,14 +140,14 @@ proc addUI*(spry: Interpreter) = 6 nimMeth("openFile"): 7 var win = WindowNode(evalArgInfix(spry)) 8 var path = openFile(Window(win.widget)) 9- if path.isNil: 10+ if path == "": 11 spry.nilVal 12 else: 13 newValue($path) 14 nimMeth("saveFile"): 15 var win = WindowNode(evalArgInfix(spry)) 16 var path = saveFile(Window(win.widget)) 17- if path.isNil: 18+ if path == "": 19 spry.nilVal 20 else: 21 newValue($path)