mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
removed unnecessary if and used better Repeat change detection
This commit is contained in:
@ -89,10 +89,9 @@ function registerMPRIS(win) {
|
||||
});
|
||||
|
||||
ipcMain.on('volumeChanged', (_, value) => {
|
||||
if (config.plugins.isEnabled('precise-volume')) {
|
||||
player.volume = value / 100;
|
||||
}
|
||||
player.volume = value / 100;
|
||||
});
|
||||
|
||||
player.on('volume', (newVolume) => {
|
||||
if (config.plugins.isEnabled('precise-volume')) {
|
||||
// With precise volume we can set the volume to the exact value.
|
||||
|
||||
Reference in New Issue
Block a user