changeset 259:772d8af8f126

fix: issue with relese build
author Sam <sam@basx.dev>
date Wed, 24 May 2023 23:31:05 +0700
parents 9cbd9780ff65
children 9d98bac0b1d9
files src/semicongine/settings.nim
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/semicongine/settings.nim	Wed May 24 23:24:52 2023 +0700
+++ b/src/semicongine/settings.nim	Wed May 24 23:31:05 2023 +0700
@@ -79,8 +79,9 @@
 
 proc hadConfigUpdate*(): bool =
   result = false
-  while notifyConfigUpdate.peek() > 0:
-    result = true
+  when CONFIGHOTRELOAD == true:
+    while notifyConfigUpdate.peek() > 0:
+      result = true
 
 
 allsettings = loadAllConfig()