Skip to content

Commit

Permalink
add enableBoardAudition to prefs
Browse files Browse the repository at this point in the history
  • Loading branch information
audionerd committed Dec 22, 2017
1 parent 8212a15 commit 05e385e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ const defaultPrefs = {
import: {
offset: [0, 0],
skipBlankBoards: true
}
},

enableBoardAudition: true
}

// For slow computers, override the defaults here.
Expand Down
7 changes: 7 additions & 0 deletions src/js/window/main-window.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ const getEtag = absoluteFilePath => etags[absoluteFilePath] || '0'

remote.getCurrentWindow().on('focus', () => {
menu.setMenu()
// HACK update to reflect current value
audioPlayback.setEnableAudition(audioPlayback.enableAudition)
})

///////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -1490,6 +1492,11 @@ let loadBoardUI = () => {
})
watcher.on('all', onLinkedFileChange)

menu.setMenu()
// HACK initialize the menu to match the value in preferences
audioPlayback.setEnableAudition(prefsModule.getPrefs().enableBoardAudition)




// for debugging:
Expand Down

0 comments on commit 05e385e

Please sign in to comment.