Skip to content

Commit

Permalink
fix scale widget sometimes not displaying right
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerty committed Feb 2, 2024
1 parent d127c90 commit 2369ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ impl VideoPlayer {
self.ui_context.set_window_title(&uri);
}

if let Some(duration) = info.duration() {
if let Some(duration) = self.player.duration() {
self.ui_context.set_position_range_end(duration.seconds() as f64);
}

Expand Down

0 comments on commit 2369ac3

Please sign in to comment.