MCPcopy Create free account
hub / github.com/IENT/YUView / updateFileWatchSetting

Method updateFileWatchSetting

YUViewLib/src/filesource/FileSource.cpp:335–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335void FileSource::updateFileWatchSetting()
336{
337 // Install a file watcher if file watching is active in the settings.
338 // The addPath/removePath functions will do nothing if called twice for the same file.
339 QSettings settings;
340 if (settings.value("WatchFiles", true).toBool())
341 fileWatcher.addPath(this->fullFilePath);
342 else
343 fileWatcher.removePath(this->fullFilePath);
344}
345
346void FileSource::clearFileCache()
347{

Callers 3

openFileMethod · 0.95
updateSettingsMethod · 0.45
updateSettingsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected