Permalink
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>
  • Loading branch information...
1 parent 7909253 commit 4426dd65762dbc286b74e1fe5d85945d0b745ccf @natanojl natanojl committed with Beirdo May 27, 2011
@@ -3866,6 +3866,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();
@@ -534,6 +534,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

0 comments on commit 4426dd6

Please sign in to comment.