┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/statusbar/spaceinfoobserver.cpp
diff options
context:
space:
mode:
authorKai Uwe Broulik <[email protected]>2018-09-19 10:20:14 +0200
committerKai Uwe Broulik <[email protected]>2018-09-19 10:20:14 +0200
commit391006130e31b80ecc55343f44bddaf06951c90f (patch)
tree046f8b7075a6cab6a14d9d2a7cb5fe162506f39c /src/statusbar/spaceinfoobserver.cpp
parent7ec783e7493a3c6a8d40a01d49e930b7ae5520f8 (diff)
Update disk space info on refresh
When explicitly refreshing the view (e.g. F5) also refresh disk space info. This would also allow us to raise the refresh interval somewhat. CCBUG: 398612 Differential Revision: https://phabricator.kde.org/D15508
Diffstat (limited to 'src/statusbar/spaceinfoobserver.cpp')
-rw-r--r--src/statusbar/spaceinfoobserver.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/statusbar/spaceinfoobserver.cpp b/src/statusbar/spaceinfoobserver.cpp
index 6cf695d55..692eba7e7 100644
--- a/src/statusbar/spaceinfoobserver.cpp
+++ b/src/statusbar/spaceinfoobserver.cpp
@@ -71,6 +71,13 @@ void SpaceInfoObserver::setUrl(const QUrl& url)
}
}
+void SpaceInfoObserver::update()
+{
+ if (m_mountPointObserver) {
+ m_mountPointObserver->update();
+ }
+}
+
void SpaceInfoObserver::spaceInfoChanged(quint64 size, quint64 available)
{
// Make sure that the size has actually changed