mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 12:37:01 +03:00
Initialize and sanitize spectrum and artwork prefs.
This commit is contained in:
@@ -24,6 +24,12 @@ $prefs->migrateClient(1, sub {
|
||||
1;
|
||||
});
|
||||
|
||||
$prefs->migrateClient(2, sub {
|
||||
my ($cprefs, $client) = @_;
|
||||
$cprefs->set('artwork', undef) if $cprefs->get('artwork') && ref $cprefs->get('artwork') ne 'HASH';
|
||||
1;
|
||||
});
|
||||
|
||||
$prefs->setChange(sub {
|
||||
$_[2]->send_equalizer;
|
||||
}, 'equalizer');
|
||||
|
||||
Reference in New Issue
Block a user