File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -361,16 +361,15 @@ private void UpdateProgressBar()
361
361
{
362
362
this . mainLoopTimeout = Application . MainLoop . AddTimeout ( TimeSpan . FromSeconds ( 1 ) , ( updateTimer ) =>
363
363
{
364
- while ( this . player . CurrentTime ( ) . Seconds < this . player . TrackLength ( ) . TotalSeconds && this . player . PlayerStatus != PlayerStatus . Stopped )
364
+ while ( this . player . CurrentTime ( ) . Seconds < this . player . TrackLength ( ) . TotalSeconds && this . player . PlayerStatus is not PlayerStatus . Stopped )
365
365
{
366
- // this.AudioProgressBar.Fraction += (float)(1 / this.player.CurrentTime().TotalSeconds);
367
- this . AudioProgressBar . Pulse ( ) ;
366
+ this . AudioProgressBar . Fraction = ( float ) ( this . player . CurrentTime ( ) . Seconds / this . player . TrackLength ( ) . TotalSeconds ) ;
368
367
this . TimePlayedLabel ( ) ;
369
368
370
369
return true ;
371
370
}
372
371
373
- return true ;
372
+ return false ;
374
373
} ) ;
375
374
}
376
375
}
You can’t perform that action at this time.
0 commit comments