mirror of
https://github.com/microsoft/terminal.git
synced 2026-07-09 02:26:45 +00:00
[silmarillion] Fix moving a tab with panes. Now, the non-first panes don't rebuild themselves on move
This commit is contained in:
@@ -35,7 +35,8 @@ namespace winrt::TerminalApp::implementation
|
||||
{
|
||||
auto content = ControlInteractivity{ settings, unfocusedAppearance, connection };
|
||||
content.Closed({ this, &ContentManager::_closedHandler });
|
||||
_content.Insert(content.Id(), content);
|
||||
const auto& contentGuid{ content.Id() };
|
||||
_content.Insert(contentGuid, content);
|
||||
return content;
|
||||
}
|
||||
|
||||
|
||||
@@ -180,7 +180,7 @@ NewTerminalArgs Pane::GetTerminalArgsForPane(const bool asContent) const
|
||||
Pane::BuildStartupState Pane::BuildStartupActions(uint32_t currentId, uint32_t nextId, const bool asContent)
|
||||
{
|
||||
// if we are a leaf then all there is to do is defer to the parent.
|
||||
if (!asContent && _IsLeaf())
|
||||
if (_IsLeaf())
|
||||
{
|
||||
if (_lastActive)
|
||||
{
|
||||
|
||||
@@ -442,7 +442,7 @@ namespace winrt::TerminalApp::implementation
|
||||
{
|
||||
// Give initial ids (0 for the child created with this tab,
|
||||
// 1 for the child after the first split.
|
||||
auto state = _rootPane->BuildStartupActions(0, 1);
|
||||
auto state = _rootPane->BuildStartupActions(0, 1, asContent);
|
||||
|
||||
{
|
||||
ActionAndArgs newTabAction{};
|
||||
|
||||
Reference in New Issue
Block a user