mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-02-02 02:58:13 -05:00
Ignore null values in quickSwitchProfiles. Fix #1248.
This commit is contained in:
parent
e67cf66f01
commit
f056816239
@ -401,6 +401,7 @@ class Options
|
|||||||
return unless quickSwitchProfiles?
|
return unless quickSwitchProfiles?
|
||||||
seenQuickSwitchProfile = {}
|
seenQuickSwitchProfile = {}
|
||||||
validQuickSwitchProfiles = quickSwitchProfiles.filter (name) =>
|
validQuickSwitchProfiles = quickSwitchProfiles.filter (name) =>
|
||||||
|
return false if not name
|
||||||
key = OmegaPac.Profiles.nameAsKey(name)
|
key = OmegaPac.Profiles.nameAsKey(name)
|
||||||
return false if seenQuickSwitchProfile[key]
|
return false if seenQuickSwitchProfile[key]
|
||||||
return false if not OmegaPac.Profiles.byName(name, @_options)
|
return false if not OmegaPac.Profiles.byName(name, @_options)
|
||||||
|
Loading…
Reference in New Issue
Block a user