expand commands every time the list of tabs changes

This commit is contained in:
Mike Griese
2020-08-05 12:40:58 -05:00
parent 0719b425b3
commit 77e51afa87

View File

@@ -1764,10 +1764,12 @@ namespace winrt::TerminalApp::implementation
}
// Method Description:
// - Responds to changes in the TabView's item list by changing the tabview's
// visibility. This method is also invoked when tabs are dragged / dropped as part of tab reordering
// and this method hands that case as well in concert with TabDragStarting and TabDragCompleted handlers
// that are set up in TerminalPage::Create()
// - Responds to changes in the TabView's item list by changing the
// tabview's visibility.
// - This method is also invoked when tabs are dragged / dropped as part of
// tab reordering and this method hands that case as well in concert with
// TabDragStarting and TabDragCompleted handlers that are set up in
// TerminalPage::Create()
// Arguments:
// - sender: the control that originated this event
// - eventArgs: the event's constituent arguments
@@ -1785,6 +1787,10 @@ namespace winrt::TerminalApp::implementation
_rearrangeTo = eventArgs.Index();
}
}
else
{
_UpdateCommandsForPalette();
}
_UpdateTabView();
}