1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-14 18:35:16 +01:00

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

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);
}
}