MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / onSelectTab

Method onSelectTab

src/app/ui/main_window.cpp:348–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348void MainWindow::onSelectTab(Tabs* tabs, TabView* tabView)
349{
350 if (!tabView)
351 return;
352
353 WorkspaceView* view = dynamic_cast<WorkspaceView*>(tabView);
354 if (m_workspace->activeView() != view)
355 m_workspace->setActiveView(view);
356}
357
358void MainWindow::onCloseTab(Tabs* tabs, TabView* tabView)
359{

Callers 1

selectTabInternalMethod · 0.80

Calls 2

activeViewMethod · 0.45
setActiveViewMethod · 0.45

Tested by

no test coverage detected