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

Method saveSettings

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

Source from the content-addressed store, hash-verified

72}
73
74void SessionManagerPrivate::saveSettings()
75{
76 QVariantMap times;
77 for (auto it = lastActiveTimes.cbegin(); it != lastActiveTimes.cend(); ++it) {
78 times.insert(it.key(), it.value());
79 }
80 settings.setValue(kGeneralGroup, kLastActiveTimes, times);
81 settings.setValue(kGeneralGroup, kLastSession, currentSession);
82 settings.setValue(kGeneralGroup, kIsAutoLoadLastSession, isAutoLoad);
83}
84
85void SessionManagerPrivate::restoreValues(const QString &session)
86{

Callers 1

SessionManagerMethod · 0.45

Calls 6

cbeginMethod · 0.80
cendMethod · 0.80
insertMethod · 0.80
keyMethod · 0.45
valueMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected