Add procs for save/get settings
This commit is contained in:
parent
470687c2a6
commit
f16de508ed
|
@ -0,0 +1,11 @@
|
|||
import core
|
||||
import json
|
||||
|
||||
proc saveSettings*(key: string, value = JsonNode) =
|
||||
discard callPrivateRPC("settings_saveSetting", %* [
|
||||
[key, value]
|
||||
])
|
||||
|
||||
|
||||
proc getSettings*(): string = callPrivateRPC("settings_getSettings")
|
||||
# TODO: return an Table/Object instead of string
|
Loading…
Reference in New Issue