]> git.seodisparate.com - mpd_info_screen/commit
Fixes/refactorings/improvements
authorStephen Seo <seo.disparate@gmail.com>
Fri, 17 Sep 2021 05:22:56 +0000 (14:22 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Fri, 17 Sep 2021 05:22:56 +0000 (14:22 +0900)
commitbf62fde38dccb3bcb849101d3841ae43205b372b
treed431210db78f7fdf29622071c98952dc0bcb40cf
parent6850dced25e4506105746a083f5308f4a8944361
Fixes/refactorings/improvements

Add some "error handling" for authentication fail, album art fetch fail,
or getting status fail (if either of the three fails, then
mpd_info_screen will not try to authenticate/fetch-info again).

Some refactoring like using a struct instead of a tuple.

Improve drawing of text by caching the picked font size that is only
changed when the song changes or when the window dimensions change.
src/main.rs