Skip to content

Commit

Permalink
Fix: navigating away from the main page and then back would break "St…
Browse files Browse the repository at this point in the history
…art With" radio buttons.
  • Loading branch information
RoqueDeicide committed Mar 13, 2024
1 parent f3c2e8f commit 2830b39
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Launcher/MainWindow.Converters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ public object Convert(object value, Type targetType, object parameter, CultureIn
/// <returns><see cref="DependencyProperty.UnsetValue"/> or <paramref name="parameter"/> parsed as enum.</returns>
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is bool b && !b)
{
return Binding.DoNothing;
}

if (!(parameter is string parameterString))
return DependencyProperty.UnsetValue;

Expand Down

0 comments on commit 2830b39

Please sign in to comment.