Ethosa 3 anni fa
parent
commit
3d2243e739
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/nodesnim/core/themes.nim

+ 2 - 1
src/nodesnim/core/themes.nim

@@ -35,7 +35,8 @@ var
              "url_color": Color("#2a9afc")}.toTable())
   ]
 {.cast(noSideEffect).}:
-  var current_theme* = themes[0].deepCopy()
+  var current_theme*: ThemeRef
+current_theme = themes[0].deepCopy()
 
 proc addTheme*(theme: ThemeRef) =
   themes.add(theme)