/// <summary> /// Saves config and shuts down the app. /// </summary> private void AppShutdown(object sender, RoutedEventArgs e) { _hotkey.SaveHotkeys(); _hotkey.UnregisterAllHotkeys(); Settings.Default.Save(); Application.Current.Shutdown(); }