Katana workspace
Revision | bf00ba881067f0811ab63b4c07a92ae2593c1cba (tree) |
---|---|
Time | 2022-12-21 18:49:30 |
Author | Ivailo Monev <xakepa10@gmai...> |
Commiter | Ivailo Monev |
plasma: watch sub-directories from image wallppaper plugin
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
@@ -85,7 +85,7 @@ void BackgroundListModel::reload(const QStringList &selected) | ||
85 | 85 | |
86 | 86 | // add wallpaper dirs to dirwatch (recursively) |
87 | 87 | foreach (const QString &dir, dirs) { |
88 | - m_dirwatch.addDir(dir); | |
88 | + m_dirwatch.addDir(dir, true); | |
89 | 89 | } |
90 | 90 | |
91 | 91 | BackgroundFinder *finder = new BackgroundFinder(m_structureParent.data(), dirs); |
@@ -415,7 +415,7 @@ void Image::updateDirWatch(const QStringList &newDirs) | ||
415 | 415 | |
416 | 416 | foreach (const QString &newDir, newDirs) { |
417 | 417 | if (!m_dirWatch->contains(newDir)) { |
418 | - m_dirWatch->addDir(newDir); | |
418 | + m_dirWatch->addDir(newDir, true); | |
419 | 419 | } |
420 | 420 | } |
421 | 421 |