summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-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!")