Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Load the disk free bar in the PBB on each UPDATE_FREE_SPACE

On startup, the playbackbox's disk free display states 0% until the first
recording is made, or the first file is deleted.  This patch makes it also
update any time an UPDATE_FREE_SPACE event is received from the backend.

Refs #9771

Signed-off-by: Gavin Hurlbut <ghurlbut@mythtv.org>
(cherry picked from commit 4426dd6)
  • Loading branch information...
commit d0648f64f1c04effcbc5b8c2e873c7ea353cbf0d 1 parent 347cd24
@natanojl natanojl authored Beirdo committed
View
4 mythtv/programs/mythfrontend/playbackbox.cpp
@@ -3855,6 +3855,10 @@ void PlaybackBox::customEvent(QEvent *event)
UpdateUILists();
m_helper.ForceFreeSpaceUpdate();
}
+ else if (message == "UPDATE_USAGE_UI")
+ {
+ UpdateUsageUI();
+ }
else if (message == "RECONNECT_SUCCESS")
{
m_programInfoCache.ScheduleLoad();
View
2  mythtv/programs/mythfrontend/playbackboxhelper.cpp
@@ -536,6 +536,8 @@ void PlaybackBoxHelper::UpdateFreeSpace(void)
m_freeSpaceUsedMB = (uint64_t) (fsInfos[i].usedSpaceKB >> 10);
}
}
+ MythEvent *e = new MythEvent("UPDATE_USAGE_UI");
+ QCoreApplication::postEvent(m_listener, e);
}
uint64_t PlaybackBoxHelper::GetFreeSpaceTotalMB(void) const
Please sign in to comment.
Something went wrong with that request. Please try again.