adirh3 / Sonar.AutoSwitch

53 stars 6 forks source link

Exception thrown when using a language different than English #1

Open JohnnyDeeee opened 1 year ago

JohnnyDeeee commented 1 year ago

When running the app it crashes when i open the Settings window. When i debug the app i see that this line fails https://github.com/adirh3/Sonar.AutoSwitch/blob/master/Sonar.AutoSwitch/MainWindow.axaml.cs#L42

This is due to the Tag containing "Instellingen" (dutch translation of "Settings"). To fix this is changed it to

NavigationViewItem { Name: "SettingsItem" } => typeof(Settings),

which seemed to work. I couldn't find a Tag defnition anywhere for "Settings" so that's why i used the Name.

adirh3 commented 1 year ago

Thanks, fixed it on latest release.