mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 21:28:27 +02:00
Add setting to enable/disable Game Bar feature
This commit is contained in:
@@ -14,7 +14,12 @@ enum InputType {
|
||||
}
|
||||
|
||||
export const BxExposed = {
|
||||
// Enable/disable Game Bar when playing/pausing
|
||||
onPollingModeChanged: (mode: 'All' | 'None') => {
|
||||
if (!getPref(PrefKey.GAME_BAR_ENABLED)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!STATES.isPlaying) {
|
||||
GameBar.disable();
|
||||
return;
|
||||
|
Reference in New Issue
Block a user