Browse Source

Fix setting panel crash on opening

master
Bogdan Cordier 2 years ago
parent
commit
329fe8dc63
2 changed files with 11 additions and 5 deletions
  1. 1
    1
      hadaly/app.py
  2. 10
    4
      hadaly/data/settings_panel.json

+ 1
- 1
hadaly/app.py View File

@@ -82,7 +82,7 @@ class HadalyApp(App):
82 82
     def build_settings(self, settings):
83 83
         settings.add_json_panel('Hadaly',
84 84
                                 self.config,
85
-                                'data/settings_panel.json')
85
+                                'hadaly/data/settings_panel.json')
86 86
 
87 87
     def on_start(self):
88 88
         self.tempdir = tempfile.mkdtemp()

+ 10
- 4
hadaly/data/settings_panel.json View File

@@ -1,4 +1,12 @@
1 1
 [
2
+  {"type":"title", "title":"General"},
3
+  
4
+  { "type":"bool",
5
+    "title":"Switch to Viewer",
6
+    "desc":"Automatically switch to Viewer when opening an *.opah file",
7
+    "section":"general",
8
+    "key":"switch_on_start" },
9
+
2 10
   {"type":"title", "title":"Editor"},
3 11
   
4 12
   { "type":"numeric",
@@ -11,8 +19,7 @@
11 19
     "title":"Auto-save",
12 20
     "desc":"Save every x minutes (Not yet functional)",
13 21
     "section":"editor",
14
-    "key":"autosave",
15
-    "true":"auto" },
22
+    "key":"autosave" },
16 23
   
17 24
   { "type":"numeric",
18 25
     "title":"Saving interval", 
@@ -32,8 +39,7 @@
32 39
     "title":"Thumbnail on zoom",
33 40
     "desc":"Show thumbnail on zoom",
34 41
     "section":"viewer",
35
-    "key":"thumb",
36
-    "true":"auto" },
42
+    "key":"thumb" },
37 43
   
38 44
   { "type":"options",
39 45
     "title":"Thumbnail position",

Loading…
Cancel
Save