From: Stephen Seo Date: Sat, 4 Feb 2023 10:56:09 +0000 (+0900) Subject: Backport Fix: display not working when no password X-Git-Tag: 0.4.6~5 X-Git-Url: https://git.seodisparate.com/stephenseo/static/git-logo.png?a=commitdiff_plain;h=4653399fe911fe2767de9185ab1c95a76f6c47ad;p=mpd_info_screen 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. Backported from `devel` branch. --- diff --git a/src/mpd_handler.rs b/src/mpd_handler.rs index b93226c..5064680 100644 --- a/src/mpd_handler.rs +++ b/src/mpd_handler.rs @@ -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,