plasma: watch sub-directories from image wallppaper plugin

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-12-21 11:49:30 +02:00
parent 5c4f03cbd4
commit bf00ba8810
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ void BackgroundListModel::reload(const QStringList &selected)
// add wallpaper dirs to dirwatch (recursively)
foreach (const QString &dir, dirs) {
m_dirwatch.addDir(dir);
m_dirwatch.addDir(dir, true);
}
BackgroundFinder *finder = new BackgroundFinder(m_structureParent.data(), dirs);

View file

@ -415,7 +415,7 @@ void Image::updateDirWatch(const QStringList &newDirs)
foreach (const QString &newDir, newDirs) {
if (!m_dirWatch->contains(newDir)) {
m_dirWatch->addDir(newDir);
m_dirWatch->addDir(newDir, true);
}
}