mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
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:
parent
76a3183199
commit
334396efd1
1 changed files with 1 additions and 0 deletions
|
@ -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()));
|
||||
|
|
Loading…
Add table
Reference in a new issue