Sonar.AutoSwitch icon indicating copy to clipboard operation
Sonar.AutoSwitch copied to clipboard

Exception thrown when using a language different than English

Open Gerben-Tx opened this issue 2 years ago • 1 comments

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.

Gerben-Tx avatar Dec 04 '22 12:12 Gerben-Tx

Thanks, fixed it on latest release.

adirh3 avatar Dec 09 '22 11:12 adirh3