Fix where display doesn't work 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:
Stephen Seo 2023-01-31 15:57:56 +09:00
parent a223d8b530
commit 56f6784892

View file

@ -263,10 +263,10 @@ impl MPDHandler {
current_binary_size: 0,
poll_state: PollState::None,
stream,
password,
password: password.clone(),
error_text: String::new(),
can_authenticate: true,
is_authenticated: false,
is_authenticated: password.is_empty(),
can_get_album_art: true,
can_get_album_art_in_dir: true,
can_get_status: true,