diff --git a/omega-target/src/options.coffee b/omega-target/src/options.coffee index 7762efd..2542e20 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)