mirror of
https://github.com/heyman/heynote.git
synced 2024-12-26 00:29:12 +01:00
Fix bug causing crash when starting the app for the first time (without a config file)
This commit is contained in:
parent
73c3d12e38
commit
fea7e3cec2
@ -34,6 +34,10 @@ const schema = {
|
||||
"showInDock": {type: "boolean", default: true},
|
||||
"showInMenu": {type: "boolean", default: false},
|
||||
"bracketClosing": {type: "boolean", default: false},
|
||||
|
||||
// when default font settings are used, fontFamily and fontSize is not specified in the
|
||||
// settings file, so that it's possible for us to change the default settings in the
|
||||
// future and have it apply to existing users
|
||||
"fontFamily": {type: "string"},
|
||||
"fontSize": {type: "integer"},
|
||||
},
|
||||
@ -64,8 +68,6 @@ const defaults = {
|
||||
showInDock: true,
|
||||
showInMenu: false,
|
||||
bracketClosing: false,
|
||||
fontFamily: null, // we use null for the default font family and size, since we could then change
|
||||
fontSize: null, // the default font family and size in the future and have it apply to existing users
|
||||
},
|
||||
theme: "system",
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user