Update the track progress in the tray icon immediately when changing track.

This commit is contained in:
David Sansome 2010-10-17 18:26:25 +00:00
parent bbe1250c31
commit 0d04e9e28d
1 changed files with 1 additions and 1 deletions

View File

@ -906,7 +906,7 @@ void MainWindow::UpdateTrackPosition() {
ui_->track_slider->SetValue(position, length);
// Update the tray icon every 10 seconds
if (position % 10 == 1) {
if (position % 10 == 0) {
tray_icon_->SetProgress(double(position) / length * 100);
}
}