Skip to content

Commit

Permalink
Fix split view bug
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Feb 15, 2025
1 parent b09bdbd commit 43dfec7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/TabComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ Canvas* TabComponent::openPatch(const URL& path)
if (cnv->patch.getCurrentFile() == patchFile) {
pd->logError("Patch is already open");
editor->getTopLevelComponent()->toFront(true);
editor->getTabComponent().showTab(cnv);
editor->getTabComponent().showTab(cnv, cnv->patch.splitViewIndex);
editor->getTabComponent().setActiveSplit(cnv);
return cnv;
}
}
Expand Down Expand Up @@ -87,6 +88,7 @@ Canvas* TabComponent::openPatch(pd::Patch::Ptr existingPatch, bool const warnIfA
pd->logError("Patch is already open");
editor->getTopLevelComponent()->toFront(true);
editor->getTabComponent().showTab(cnv, cnv->patch.splitViewIndex);
editor->getTabComponent().setActiveSplit(cnv);
return cnv;
}
}
Expand Down

0 comments on commit 43dfec7

Please sign in to comment.