Skip to content

Commit

Permalink
Hide the new progress bar in TvPlayWindow until it is used.
Browse files Browse the repository at this point in the history
It is currently only updated for bluray startup. I'm investigating dvd
startup but it doesn't appear to be useful in the same way and most
normal playback startup is quick enough not to need it (for me at
least).
  • Loading branch information
Mark Kendall committed Jan 27, 2011
1 parent a51c237 commit 529e718
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythtv/tv_play_win.cpp
Expand Up @@ -35,6 +35,7 @@ bool TvPlayWindow::Create()
m_progressBar = dynamic_cast<MythUIProgressBar*>(GetChild("progress"));
if (m_progressBar)
{
m_progressBar->SetVisible(false);
m_progressBar->SetStart(0);
m_progressBar->SetTotal(100);
m_progressBar->SetUsed(m_progress);
Expand All @@ -51,6 +52,7 @@ void TvPlayWindow::UpdateProgress(void)
if (m_progress > 100)
m_progress = 0;
m_progressBar->SetUsed(m_progress);
m_progressBar->SetVisible(true);
}

/** \brief Mouse click/movement handler, recieves mouse gesture events
Expand Down

0 comments on commit 529e718

Please sign in to comment.