Indicator now pops up if volume changes

This commit is contained in:
Myryk
2024-05-29 17:54:11 +02:00
parent 3d65ec8e73
commit 6f7577467a
@@ -86,7 +86,10 @@ export default (monitor = 0) => {
}),
progressSetup: (self) => self.hook(Audio, (progress) => {
const updateValue = Audio.speaker?.volume;
if (!isNaN(updateValue)) progress.value = updateValue;
if (!isNaN(updateValue)) {
if (updateValue != progress.value) Indicator.popup(1);
progress.value = updateValue;
}
}),
});
return MarginRevealer({