Initialize and sanitize spectrum and artwork prefs.

This commit is contained in:
Michael Herger
2020-10-16 00:27:00 +02:00
parent ee7d2a492c
commit a35b5204d5
3 changed files with 56 additions and 17 deletions

View File

@@ -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');