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

Method initialize

src/plugins/core/modules/sessionmanagermodule.cpp:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11using namespace dpfservice;
12
13void SessionManagerModule::initialize(Controller *_uiController)
14{
15 connect(&dpf::Listener::instance(), &dpf::Listener::pluginsStarted, this, [this] {
16 auto ins = SessionManager::instance();
17 if (ins->isAutoLoadLastSession()) {
18 const auto session = ins->lastSession();
19 QTimer::singleShot(100, this, std::bind(&SessionManager::loadSession, ins, session));
20 }
21 });
22 initInterfaces();
23 initOutputEvents();
24}
25
26void SessionManagerModule::initInterfaces()
27{

Callers

nothing calls this directly

Calls 3

connectFunction · 0.85
isAutoLoadLastSessionMethod · 0.80
lastSessionMethod · 0.80

Tested by

no test coverage detected