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:
parent
bbe1250c31
commit
0d04e9e28d
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user