Skip to content

Commit 2721f32

Browse files
committed
Auto-play sources from CLI
1 parent 461de4d commit 2721f32

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## Unreleased
2+
3+
* Fixed:
4+
* When a source was specified on the command line,
5+
you had to click "add player" for it to start playing.
6+
17
## v0.2.1 (2025-07-22)
28

39
* Fixed:

src/gui/grid.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,15 @@ pub struct Grid {
7777

7878
impl Grid {
7979
pub fn new(settings: &Settings) -> Self {
80+
let players = if settings.sources.is_empty() {
81+
vec![]
82+
} else {
83+
vec![Player::default()]
84+
};
85+
8086
Self {
8187
sources: settings.sources.clone(),
82-
players: vec![],
88+
players,
8389
content_fit: settings.content_fit,
8490
orientation: settings.orientation,
8591
orientation_limit: settings.orientation_limit,

0 commit comments

Comments
 (0)