Set the selectedChord to Nothing when setting a key

This helps us avoid showing a chord from a key that the user did not whitelist.
This commit is contained in:
William Carroll 2020-04-19 00:31:42 +01:00
parent 8620d86fd0
commit 74ebb8e869

View file

@ -234,6 +234,7 @@ update msg model =
| whitelistedKeys = keys
, whitelistedChords =
keys |> List.concatMap Theory.chordsForKey
, selectedChord = Nothing
}
, Cmd.none
)