v4.3.3.43 - DEV Update NSPanelTs.ts

minor fixes
This commit is contained in:
Thomas
2024-02-12 13:18:55 +01:00
parent 52d405a6d6
commit 377383d672

View File

@@ -5332,7 +5332,7 @@ function GenerateMediaPage(page: NSPanel.PageMedia): NSPanel.Payload[] {
name = page.heading; name = page.heading;
} }
let volume = scale(getState(id + '.VOLUME').val, activePage.items[0].minValue ?? 0, activePage.items[0].maxValue ?? 100, 100, 0); let volume = scale(getState(id + '.VOLUME').val, activePage!.items[0]!.minValue ?? 0, activePage!.items[0]!.maxValue ?? 100, 100, 0);
let iconplaypause = Icons.GetIcon('pause'); //pause let iconplaypause = Icons.GetIcon('pause'); //pause
let shuffle_icon = Icons.GetIcon('shuffle-variant'); //shuffle let shuffle_icon = Icons.GetIcon('shuffle-variant'); //shuffle
let onoffbutton = 1374; let onoffbutton = 1374;
@@ -6961,7 +6961,7 @@ function HandleButtonEvent(words: any): void {
subscribeMediaSubscriptions(id); subscribeMediaSubscriptions(id);
useMediaEvents = true; useMediaEvents = true;
pageCounter = 1; pageCounter = 1;
let vVolume = scale(parseInt(words[4]), 100, 0, activePage.items[0].minValue ?? 0, activePage.items[0].maxValue ?? 100); let vVolume = scale(parseInt(words[4]), 100, 0, activePage!.items[0]!.minValue ?? 0, activePage!.items[0]!.maxValue ?? 100);
setIfExists(id + '.VOLUME', Math.floor(vVolume)); setIfExists(id + '.VOLUME', Math.floor(vVolume));
break; break;
case 'mode-speakerlist': case 'mode-speakerlist':