diff --git a/src/status/settings.nim b/src/status/settings.nim new file mode 100644 index 0000000000..e9099e2f39 --- /dev/null +++ b/src/status/settings.nim @@ -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