mirror of
https://github.com/microsoft/terminal.git
synced 2026-05-19 21:41:15 +00:00
expand commands every time the list of tabs changes
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user