From 85282ceb4897f5bbb30ff6ef2959db9d5a4c6d36 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 7569fac9ac..e341573cbd 100644 --- a/ui/ui.js +++ b/ui/ui.js @@ -193,7 +193,6 @@ shaka.ui.Overlay = class { 'playback_rate', 'recenter_vr', 'toggle_stereoscopic', - 'save_video_frame', ], statisticsList: [ 'width', @@ -292,6 +291,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; }