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

Method enableSync

src/common/settings/settings.cpp:94–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void SettingsPrivate::enableSync(bool enable)
95{
96 if (syncEnabled == enable)
97 return;
98
99 syncEnabled = enable;
100 if (!autoSync || !syncTimer)
101 return;
102
103 if (QThread::currentThread() == syncTimer->thread()) {
104 if (enable) {
105 syncTimer->start();
106 } else {
107 syncTimer->stop();
108 }
109 } else {
110 syncTimer->metaObject()->invokeMethod(syncTimer, enable ? "start" : "stop", Qt::QueuedConnection);
111 }
112}
113
114bool SettingsPrivate::makeFilePath(const QString &fileName)
115{

Callers 5

setValueMethod · 0.80
removeGroupMethod · 0.80
removeMethod · 0.80
clearMethod · 0.80
syncMethod · 0.80

Calls 2

startMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected