Fix "slow startup" bug, bump version to 0.2.5

This commit is contained in:
Stephen Seo 2021-12-18 19:47:10 +09:00
parent d13a8a7b88
commit c72e05c53d
4 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View file

@ -1427,7 +1427,7 @@ dependencies = [
[[package]] [[package]]
name = "mpd_info_screen" name = "mpd_info_screen"
version = "0.2.4" version = "0.2.5"
dependencies = [ dependencies = [
"ggez", "ggez",
"image", "image",

View file

@ -1,6 +1,6 @@
[package] [package]
name = "mpd_info_screen" name = "mpd_info_screen"
version = "0.2.4" version = "0.2.5"
edition = "2018" edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -9,7 +9,7 @@ counter, and the filename currently being played
# Usage # Usage
mpd_info_screen 0.2.4 mpd_info_screen 0.2.5
USAGE: USAGE:
mpd_info_screen [FLAGS] [OPTIONS] <host> [port] mpd_info_screen [FLAGS] [OPTIONS] <host> [port]

View file

@ -319,7 +319,7 @@ impl MPDHandler {
} }
pub fn is_art_data_ready(&self) -> bool { pub fn is_art_data_ready(&self) -> bool {
self.art_data.len() == self.art_data_size self.art_data_size != 0 && self.art_data.len() == self.art_data_size
} }
pub fn get_art_data(&self) -> &[u8] { pub fn get_art_data(&self) -> &[u8] {