MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / handleSessionLoaded

Method handleSessionLoaded

src/plugins/codeeditor/gui/workspacewidget.cpp:484–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482}
483
484void WorkspaceWidgetPrivate::handleSessionLoaded()
485{
486 while (tabWidgetList.size() > 1) {
487 auto tabWidget = tabWidgetList.takeLast();
488 tabWidget->deleteLater();
489 }
490
491 tabWidgetList.first()->closeAllEditor();
492 focusTabWidget = tabWidgetList.first();
493 auto symbolWidget = SymbolWidgetGenerator::instance()->symbolWidget();
494 symbolWidget->setEditor(nullptr);
495
496 const auto &openedFiles = sessionSrv->value(kOpenedFileList).toStringList();
497 const auto &currentFile = sessionSrv->value(kCurrentFile).toString();
498 for (const auto &file : openedFiles)
499 handleOpenFile("", file);
500 if (!currentFile.isEmpty())
501 handleOpenFile("", currentFile);
502}
503
504void WorkspaceWidgetPrivate::initConnection()
505{

Callers

nothing calls this directly

Calls 7

closeAllEditorMethod · 0.80
symbolWidgetMethod · 0.80
sizeMethod · 0.45
setEditorMethod · 0.45
valueMethod · 0.45
toStringMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected