kfreespace: poll for config changes every 5 seconds

the default is 1 second

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-08-31 18:12:34 +03:00
parent 76a3183199
commit 334396efd1

View file

@ -41,6 +41,7 @@ KFreeSpaceModule::KFreeSpaceModule(QObject *parent, const QList<QVariant> &args)
slotInit();
m_dirwatch = new KDirWatch(this);
m_dirwatch->setInterval(5000);
const QString kfreespacercfile = KStandardDirs::locateLocal("config", "kfreespacerc");
m_dirwatch->addFile(kfreespacercfile);
connect(m_dirwatch, SIGNAL(dirty(QString)), this, SLOT(slotInit()));