Reimplement the 0x1866 keyboard power settings

This commit is contained in:
Luke D. Jones
2024-05-14 10:18:56 +12:00
parent a0368d4345
commit 6b129763d4
5 changed files with 106 additions and 67 deletions

View File

@@ -268,7 +268,7 @@ export component PageAura inherits Rectangle {
for state[idx] in AuraPageData.led_power.states: old_zone := AuraPowerGroupOld {
group-title: @tr("Power Zones");
zone_strings <=> AuraPageData.power_zone_names;
zone_strings <=> AuraPageData.power_zone_names_old;
selected_zone => {
AuraPageData.led_power.states[idx].zone = AuraPageData.supported_power_zones[old_zone.current_zone];
AuraPageData.set_led_power(AuraPageData.led_power);