handle "generic" visualizer - release

This commit is contained in:
philippe44
2020-03-20 23:55:26 -07:00
parent b5199650ff
commit ff40290610
8 changed files with 154 additions and 53 deletions

View File

@@ -55,8 +55,12 @@ sub handler {
$client->display->modes($client->display->build_modes);
$client->display->update;
# force update
Plugins::SqueezeESP32::Plugin::update_artwork($client, 1) if $artwork->{'enable'};
# force update or disable artwork
if ($artwork->{'enable'}) {
Plugins::SqueezeESP32::Plugin::update_artwork($client, 1);
} else {
Plugins::SqueezeESP32::Plugin::disable_artwork($client);
}
}
# as there is nothing captured, we need to re-set these variables