Revert "kfreespace: poll for user config changes, even if it does not exist yet"

KStandardDirs::locateLocal() returns the same as
KGlobal::dirs()->saveLocation()
This commit is contained in:
Ivailo Monev 2023-09-01 04:48:02 +03:00
parent d891677b00
commit f06b7c74e6

View file

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