mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-17 15:31:20 +00:00
[MountPointObserverCache] Update mounts less frequently
Even on fastest disks, filling up the disk in 10 seconds is unlikely. Moreover, Plasma's "low disk" warning only polls every minute as well and Dolphin doesn't warn you about the fact that it's full. Reduces needless wake ups of disks and network. CCBUG: 398612 Differential Revision: https://phabricator.kde.org/D15507
This commit is contained in:
parent
092d08f5e8
commit
c69ecab9b7
|
@ -78,7 +78,7 @@ MountPointObserver* MountPointObserverCache::observerForUrl(const QUrl& url)
|
|||
connect(observer, &MountPointObserver::destroyed, this, &MountPointObserverCache::slotObserverDestroyed);
|
||||
|
||||
if (!m_updateTimer->isActive()) {
|
||||
m_updateTimer->start(10000);
|
||||
m_updateTimer->start(60000); // 1 minute
|
||||
}
|
||||
|
||||
connect(m_updateTimer, &QTimer::timeout, observer, &MountPointObserver::update);
|
||||
|
|
Loading…
Reference in a new issue