mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 05:08:26 +02:00
Add setting to enable/disable Game Bar feature
This commit is contained in:
@@ -427,8 +427,8 @@ export function updateVideoPlayerCss() {
|
||||
}
|
||||
|
||||
// Apply video filters to screenshots
|
||||
if (getPref(PrefKey.SCREENSHOT_APPLY_FILTERS)) {
|
||||
STATES.currentStream.$screenshotCanvas!.getContext('2d')!.filter = filters;
|
||||
if (getPref(PrefKey.SCREENSHOT_APPLY_FILTERS) && STATES.currentStream.$screenshotCanvas) {
|
||||
STATES.currentStream.$screenshotCanvas.getContext('2d')!.filter = filters;
|
||||
}
|
||||
|
||||
const PREF_RATIO = getPref(PrefKey.VIDEO_RATIO);
|
||||
@@ -475,7 +475,7 @@ export function setupStreamUi() {
|
||||
setupQuickSettingsBar();
|
||||
StreamStats.render();
|
||||
|
||||
GameBar.setup();
|
||||
getPref(PrefKey.GAME_BAR_ENABLED) && GameBar.setup();
|
||||
}
|
||||
|
||||
updateVideoPlayerCss();
|
||||
|
Reference in New Issue
Block a user