mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-18 01:27:25 +00:00
Add procs for save/get settings
This commit is contained in:
parent
470687c2a6
commit
f16de508ed
11
src/status/settings.nim
Normal file
11
src/status/settings.nim
Normal file
@ -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…
x
Reference in New Issue
Block a user