Skip to content
Permalink
Browse files

Fix bug if selected system keyboard is removed

  • Loading branch information...
AlexVallat committed Apr 27, 2018
1 parent f315888 commit 8c3a69dfbd5c3c74996fd63bf98c8dd3bdc61182
Showing with 1 addition and 1 deletion.
  1. +1 −1 KeyLayoutAutoSwitch/Rule.cs
@@ -54,7 +54,7 @@ public virtual void Deserialize(XElement element)
var inputLanguageHandle = (long?)element.Attribute(InputlanguageAttributeName);
if (inputLanguageHandle.HasValue)
{
Language = InputLanguage.InstalledInputLanguages.Cast<InputLanguage>().First(inputLanguage => inputLanguage.Handle.ToInt64() == inputLanguageHandle);
Language = InputLanguage.InstalledInputLanguages.Cast<InputLanguage>().FirstOrDefault(inputLanguage => inputLanguage.Handle.ToInt64() == inputLanguageHandle);
}
}

0 comments on commit 8c3a69d

Please sign in to comment.
You can’t perform that action at this time.