From 69988029b743bee9c34fba1a2a32195c7b2bad7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Velad=20Galv=C3=A1n?= Date: Fri, 18 Oct 2024 18:23:11 +0200 Subject: [PATCH] fix(UI): Fix the position of save video frame in the overflow menu (#7438) This change is necessary because the remote playback button is not in the initial list, and this causes it to be positioned in last place when we do not want this to happen. --- ui/ui.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/ui.js b/ui/ui.js index da18c4ef0f..a92e9b381b 100644 --- a/ui/ui.js +++ b/ui/ui.js @@ -192,7 +192,6 @@ shaka.ui.Overlay = class { 'playback_rate', 'recenter_vr', 'toggle_stereoscopic', - 'save_video_frame', ], statisticsList: [ 'width', @@ -290,6 +289,9 @@ shaka.ui.Overlay = class { (name) => name != 'play_pause' && name != 'volume'); } + // Set this button here to push it at the end. + config.overflowMenuButtons.push('save_video_frame'); + return config; }