Skip to content

Commit

Permalink
fix: fix logic re whether prefs are set
Browse files Browse the repository at this point in the history
  • Loading branch information
ksalzke committed Oct 17, 2021
1 parent fa89ca4 commit a92571b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Resources/preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
const syncedPrefs = this.templateLibrary.loadSyncedPrefs()

// get current preferences or set defaults if they don't yet exist
const alwaysEnable = preferences.readBoolean('alwaysEnable') ? preferences.readBoolean('alwaysEnable') : true
const alwaysGoTo = preferences.readBoolean('alwaysGoTo') ? preferences.readBoolean('alwaysGoTo') : false
const sortLocationsAlphabetically = preferences.readBoolean('sortLocationsAlphabetically') ? preferences.readBoolean('sortLocationsAlphabetically') : false
const alwaysEnable = (preferences.read('alwaysEnable') !== null) ? preferences.readBoolean('alwaysEnable') : true
const alwaysGoTo = (preferences.read('alwaysGoTo') !== null) ? preferences.readBoolean('alwaysGoTo') : false
const sortLocationsAlphabetically = (preferences.read('sortLocationsAlphabetically') !== null) ? preferences.readBoolean('sortLocationsAlphabetically') : false
const templateFolderID = syncedPrefs.read('templateFolderID')
const templateFolder = templateFolderID ? Folder.byIdentifier(templateFolderID) : null

Expand Down

0 comments on commit a92571b

Please sign in to comment.