From 6e3c3dbe01ac86fd495a36a39a61eaa0fe9898b1 Mon Sep 17 00:00:00 2001 From: FelisCatus Date: Sun, 26 Aug 2018 20:39:44 -0700 Subject: [PATCH] Fix showExternalProfile default settings. Fix #1554. --- omega-target/src/options.coffee | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/omega-target/src/options.coffee b/omega-target/src/options.coffee index 7762efde..2542e203 100644 --- a/omega-target/src/options.coffee +++ b/omega-target/src/options.coffee @@ -368,11 +368,12 @@ class Options if refresh? @_state.set({'refreshOnProfileChange': refresh}) - showExternal = changes['-showExternalProfile'] - if not showExternal? - showExternal = true - @_setOptions({'-showExternalProfile': true}, {persist: true}) - @_state.set({'showExternalProfile': showExternal}) + if Object::hasOwnProperty.call changes, '-showExternalProfile' + showExternal = changes['-showExternalProfile'] + if not showExternal? + showExternal = true + @_setOptions({'-showExternalProfile': true}, {persist: true}) + @_state.set({'showExternalProfile': showExternal}) quickSwitchProfiles = changes['-quickSwitchProfiles'] quickSwitchProfiles = @_cleanUpQuickSwitchProfiles(quickSwitchProfiles)