OTHER: Fix timedisplay for playtimes >= 100 minutes
If the playtime is bigger or equal to 100 minutes, timedisplay shows hours and minutes now, if playtime is bigger or equal to 100 hours, timedisplay gives up and only showes '--:--'
This commit is contained in:
parent
fb264e8d0e
commit
18bcad6f99
4 changed files with 44 additions and 14 deletions
|
@ -167,10 +167,20 @@ MainDisplay::setStatus (Xmms::Playback::Status status)
|
|||
m_playstatus->setStatus (status);
|
||||
|
||||
if (status == Xmms::Playback::STOPPED) {
|
||||
m_time->setTime(0);
|
||||
//m_time->setTime(0);
|
||||
m_time->hide ();
|
||||
m_kbps->hide ();
|
||||
m_khz->hide ();
|
||||
m_posbar->setValue (0);
|
||||
m_posbar->hide ();
|
||||
m_stereo->setStereoMono (false, false);
|
||||
} else if (status == Xmms::Playback::PLAYING) {
|
||||
m_time->show ();
|
||||
m_kbps->show ();
|
||||
m_khz->show ();
|
||||
// m_posbar will be shown when fetching metadata
|
||||
// m_stereo is set there too
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue