🐛 (viewer) Fix preferences updating

This commit is contained in:
coyotte508 2021-08-15 13:35:27 +02:00
commit 072b7fe2c8

View file

@ -40,7 +40,8 @@ function launch(selector: string) {
app.$forceUpdate();
});
item.addListener('preferences', (data) => {
Object.assign(params.preferences, data);
params.preferences = { ...params.preferences, ...data };
app.$forceUpdate();
});
item.addListener('gamelog', (_) => item.emit('fetchState'));