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

Method restoreValues

src/plugins/core/session/sessionmanager.cpp:85–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void SessionManagerPrivate::restoreValues(const QString &session)
86{
87 Settings settings("", q->sessionFile(session));
88 const auto keys = settings.keyList(kSessionGroup);
89 for (const auto &key : keys) {
90 values.insert(key, settings.value(kSessionGroup, key));
91 }
92}
93
94void SessionManagerPrivate::setAutoLoadLastSession(bool autoLoad)
95{

Callers 1

loadSessionMethod · 0.45

Calls 4

sessionFileMethod · 0.80
keyListMethod · 0.80
insertMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected