Browse Source

Fix setting panel crash on opening

master
octogene 4 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):
def build_settings(self, settings):
settings.add_json_panel('Hadaly',
self.config,
'data/settings_panel.json')
'hadaly/data/settings_panel.json')
def on_start(self):
self.tempdir = tempfile.mkdtemp()


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

@ -1,4 +1,12 @@
[
{"type":"title", "title":"General"},
{ "type":"bool",
"title":"Switch to Viewer",
"desc":"Automatically switch to Viewer when opening an *.opah file",
"section":"general",
"key":"switch_on_start" },
{"type":"title", "title":"Editor"},
{ "type":"numeric",
@ -11,8 +19,7 @@
"title":"Auto-save",
"desc":"Save every x minutes (Not yet functional)",
"section":"editor",
"key":"autosave",
"true":"auto" },
"key":"autosave" },
{ "type":"numeric",
"title":"Saving interval",
@ -32,8 +39,7 @@
"title":"Thumbnail on zoom",
"desc":"Show thumbnail on zoom",
"section":"viewer",
"key":"thumb",
"true":"auto" },
"key":"thumb" },
{ "type":"options",
"title":"Thumbnail position",


Loading…
Cancel
Save