Backport Fix: display not working when no password
Previous implementation only worked if MPD was accessed with a password. This commit fixes no-password access of MPD.
This commit is contained in:
parent
cd4d4f60e4
commit
27c3d8c5cd
1 changed files with 2 additions and 2 deletions
|
@ -263,10 +263,10 @@ impl MPDHandler {
|
||||||
current_binary_size: 0,
|
current_binary_size: 0,
|
||||||
poll_state: PollState::None,
|
poll_state: PollState::None,
|
||||||
stream,
|
stream,
|
||||||
password,
|
password: password.clone(),
|
||||||
error_text: String::new(),
|
error_text: String::new(),
|
||||||
can_authenticate: true,
|
can_authenticate: true,
|
||||||
is_authenticated: false,
|
is_authenticated: password.is_empty(),
|
||||||
can_get_album_art: true,
|
can_get_album_art: true,
|
||||||
can_get_album_art_in_dir: true,
|
can_get_album_art_in_dir: true,
|
||||||
can_get_status: true,
|
can_get_status: true,
|
||||||
|
|
Loading…
Reference in a new issue