Browse Source

Fix setting panel crash on opening

master
octogene 6 years ago
parent
commit
329fe8dc63
  1. 2
      hadaly/app.py
  2. 14
      hadaly/data/settings_panel.json

2
hadaly/app.py

@ -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()

14
hadaly/data/settings_panel.json

@ -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