Skip to content

Commit 3d731f5

Browse files
committed
Fix custom tab names reverting when moving tabs around Data Viewport
1 parent 4a2bd15 commit 3d731f5

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Source/Processors/Editors/VisualizerEditor.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,13 @@ void VisualizerEditor::loadCustomParametersFromXml (XmlElement* xml)
290290
*/
291291
checkForCanvas();
292292

293+
// If tab is already open, remove and re-add the tab to update its text
294+
if (isOpenInTab)
295+
{
296+
removeTab();
297+
addTab();
298+
}
299+
293300
break;
294301
}
295302
}

Source/UI/DataViewport.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ void DraggableTabComponent::showTabNameEditor (int tabIndex, const String& tabNa
469469
editNameLabel->onTextChange = [this, tabIndex, nodeId, editNameLabel]()
470470
{
471471
setTabName (tabIndex, editNameLabel->getText());
472+
getTabbedButtonBar().getTabButton (tabIndex)->setName (editNameLabel->getText());
472473

473474
// update the tab text in the VisualizerEditor
474475
GenericProcessor* processor = AccessClass::getProcessorGraph()->getProcessorWithNodeId (nodeId);

0 commit comments

Comments
 (0)