From 1966c7c1274828dc0ab853c4878bbe9ccce87ad1 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Fri, 5 Apr 2024 21:31:30 +0700 Subject: [PATCH] Hide scrollbar setting in the app --- better-xcloud.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/better-xcloud.user.js b/better-xcloud.user.js index 3aeb719..141f376 100644 --- a/better-xcloud.user.js +++ b/better-xcloud.user.js @@ -10521,9 +10521,9 @@ function injectSettingsButton($parent) { }, [t('ui')]: { [Preferences.UI_LAYOUT]: t('layout'), - [Preferences.UI_SCROLLBAR_HIDE]: t('hide-scrollbar'), [Preferences.STREAM_SIMPLIFY_MENU]: t('simplify-stream-menu'), [Preferences.SKIP_SPLASH_VIDEO]: t('skip-splash-video'), + [!AppInterface && Preferences.UI_SCROLLBAR_HIDE]: t('hide-scrollbar'), [Preferences.HIDE_DOTS_ICON]: t('hide-system-menu-icon'), [Preferences.REDUCE_ANIMATIONS]: t('reduce-animations'), }, @@ -10571,7 +10571,7 @@ function injectSettingsButton($parent) { for (let settingId in SETTINGS_UI[groupLabel]) { // Don't render custom settings - if (settingId.startsWith('_')) { + if (settingId === 'undefined' || settingId.startsWith('_')) { continue; }