mirror of
https://github.com/microsoft/terminal.git
synced 2026-04-10 00:01:29 +00:00
Bugfix: avoid crash on discard changes (bad cast)
This commit is contained in:
@@ -126,7 +126,7 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
|
||||
// could not find the page we were on, fallback to first menu item
|
||||
const auto firstItem{ navigationMenu.MenuItems().GetAt(0) };
|
||||
navigationMenu.SelectedItem(firstItem);
|
||||
if (const auto tag{ navigationMenu.SelectedItem().as<NavigationViewItem>().Tag() })
|
||||
if (const auto tag{ navigationMenu.SelectedItem().as<MUX::Controls::NavigationViewItem>().Tag() })
|
||||
{
|
||||
_Navigate(unbox_value<hstring>(tag));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user