Set default externalPlayerPath (#1702)

Set default externalPlayerPath
This commit is contained in:
Feross Aboukhadijeh
2019-09-19 12:58:42 -07:00
committed by GitHub
2 changed files with 8 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ function run (state) {
if (semver.lt(version, '0.17.0')) migrate_0_17_0(saved)
if (semver.lt(version, '0.17.2')) migrate_0_17_2(saved)
if (semver.lt(version, '0.21.0')) migrate_0_21_0(saved)
if (semver.lt(version, '0.21.1')) migrate_0_21_1(saved)
// Config is now on the new version
state.saved.version = config.APP_VERSION
@@ -214,3 +215,9 @@ function migrate_0_21_0 (saved) {
saved.prefs.soundNotifications = true
}
}
function migrate_0_21_1 (saved) {
if (saved.prefs.externalPlayerPath == null) {
saved.prefs.externalPlayerPath = ''
}
}

View File

@@ -119,7 +119,7 @@ function setupStateSaved () {
downloadPath: config.DEFAULT_DOWNLOAD_PATH,
isFileHandler: false,
openExternalPlayer: false,
externalPlayerPath: null,
externalPlayerPath: '',
startup: false,
soundNotifications: true,
autoAddTorrents: false,