From 0d04e9e28d705fc92c9bc6e1a232a7887ec527ac Mon Sep 17 00:00:00 2001 From: David Sansome Date: Sun, 17 Oct 2010 18:26:25 +0000 Subject: [PATCH] Update the track progress in the tray icon immediately when changing track. --- src/ui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index 93415104e..a8a5ec9fd 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -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); } }