summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-01-25 20:08:35 +0200
committerPaul Buetow <paul@buetow.org>2024-01-25 20:08:35 +0200
commit486c30caa878b2e56b80feb24e3fe2b036a50c64 (patch)
tree43e3368a7fd522f6f9689ac9ebb0007016299d64
parentab1724a2d80114889e4efcbb871087b80382555f (diff)
initial preferences
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.go b/main.go
index b0eac4c..deac956 100644
--- a/main.go
+++ b/main.go
@@ -14,9 +14,11 @@ import (
func main() {
a := app.NewWithID("org.buetow.quicklogger")
+ a.Preferences().SetString("Directory", "/storage/emulated/0/Notes/Vault")
w := a.NewWindow("Quick logger")
+
// Same dir as my Obsidian
- storageDir := "/storage/emulated/0/Notes/Vault"
+ storageDir := a.Preferences().String("Directory")
input := widget.NewMultiLineEntry()
input.SetPlaceHolder("Enter text here!")