Ignore null values in quickSwitchProfiles. Fix #1248.

This commit is contained in:
FelisCatus 2017-10-14 10:51:10 -07:00
parent e67cf66f01
commit f056816239

View File

@ -401,6 +401,7 @@ class Options
return unless quickSwitchProfiles?
seenQuickSwitchProfile = {}
validQuickSwitchProfiles = quickSwitchProfiles.filter (name) =>
return false if not name
key = OmegaPac.Profiles.nameAsKey(name)
return false if seenQuickSwitchProfile[key]
return false if not OmegaPac.Profiles.byName(name, @_options)