MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / startWatching

Method startWatching

launcher/icons/IconList.cpp:212–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void IconList::startWatching()
213{
214 auto abs_path = m_dir.absolutePath();
215 FS::ensureFolderPathExists(abs_path);
216 is_watching = m_watcher->addPath(abs_path);
217 if (is_watching)
218 {
219 qDebug() << "Started watching " << abs_path;
220 }
221 else
222 {
223 qDebug() << "Failed to start watching " << abs_path;
224 }
225}
226
227void IconList::stopWatching()
228{

Callers 6

openedImplMethod · 0.45
openedImplMethod · 0.45
test_addFromWatchFunction · 0.45
test_removeResourceFunction · 0.45

Calls 1

ensureFolderPathExistsFunction · 0.85

Tested by 2

test_addFromWatchFunction · 0.36
test_removeResourceFunction · 0.36