diff --git a/menu/skeleton-parts/player.js b/menu/skeleton-parts/player.js index d4904dd09..302fbdb42 100644 --- a/menu/skeleton-parts/player.js +++ b/menu/skeleton-parts/player.js @@ -62,19 +62,6 @@ extension.skeleton.main.layers.section.player.on.click = { } } }, - quality_when_low_battery: { - component: 'switch', - text: 'qualityWhenLowBattery', - storage: 'player_quality_when_low_battery', - id: 'quality_when_low_battery', - on: { - click: function () { - if (satus.storage.get('player_quality_when_low_battery') != "") { - document.getElementById('quality_when_low_battery').flip(true); - } - } - } - }, only_one_player_instance_playing: { component: 'switch', text: 'onlyOnePlayerInstancePlaying', @@ -759,6 +746,23 @@ extension.skeleton.main.layers.section.player.on.click = { } } }, + qualityWhenRunningOnBattery: { + component: 'switch', + text: 'qualityWhenRunningOnBattery', + on: { + render: function () { + extension.skeleton.main.layers.section.player.on.click.section_1.player_quality.on.render.call(this); + } + } + }, + whenBatteryIslowDecreaseQuality: { + component: 'switch', + text: 'whenBatteryIslowDecreaseQuality' + }, + pauseWhileIUnplugTheCharger: { + component: 'switch', + text: 'pauseWhileIUnplugTheCharger' + }, mini_player: { component: 'switch', text: 'customMiniPlayer'