mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 08:07:18 +02:00
Fix missing key for STREAM_HIDE_IDLE_CURSOR
This commit is contained in:
parent
1dc411281c
commit
d43659da30
@ -585,6 +585,7 @@ class Preferences {
|
|||||||
static get USE_DESKTOP_CODEC() { return 'use_desktop_codec'; }
|
static get USE_DESKTOP_CODEC() { return 'use_desktop_codec'; }
|
||||||
static get USER_AGENT_PROFILE() { return 'user_agent_profile'; }
|
static get USER_AGENT_PROFILE() { return 'user_agent_profile'; }
|
||||||
static get USER_AGENT_CUSTOM() { return 'user_agent_custom'; }
|
static get USER_AGENT_CUSTOM() { return 'user_agent_custom'; }
|
||||||
|
static get STREAM_HIDE_IDLE_CURSOR() { return 'stream_hide_idle_cursor';}
|
||||||
static get STREAM_HIDE_TOUCH_CONTROLLER() { return 'stream_hide_touch_controller'; }
|
static get STREAM_HIDE_TOUCH_CONTROLLER() { return 'stream_hide_touch_controller'; }
|
||||||
static get STREAM_SIMPLIFY_MENU() { return 'stream_simplify_menu'; }
|
static get STREAM_SIMPLIFY_MENU() { return 'stream_simplify_menu'; }
|
||||||
|
|
||||||
@ -707,7 +708,7 @@ class Preferences {
|
|||||||
'label': 'Simplify Stream\'s menu',
|
'label': 'Simplify Stream\'s menu',
|
||||||
'default': false,
|
'default': false,
|
||||||
},
|
},
|
||||||
[Preferences.HIDE_IDLE_CURSOR]: {
|
[Preferences.STREAM_HIDE_IDLE_CURSOR]: {
|
||||||
'label': 'Hide mouse cursor while playing',
|
'label': 'Hide mouse cursor while playing',
|
||||||
'default': false,
|
'default': false,
|
||||||
},
|
},
|
||||||
@ -818,6 +819,12 @@ class Preferences {
|
|||||||
|
|
||||||
this._prefs = {};
|
this._prefs = {};
|
||||||
for (let settingId in Preferences.SETTINGS) {
|
for (let settingId in Preferences.SETTINGS) {
|
||||||
|
if (!settingId) {
|
||||||
|
alert('Undefined setting key');
|
||||||
|
console.log('Undefined setting key');
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
const setting = Preferences.SETTINGS[settingId];
|
const setting = Preferences.SETTINGS[settingId];
|
||||||
if (settingId in savedPrefs) {
|
if (settingId in savedPrefs) {
|
||||||
this._prefs[settingId] = savedPrefs[settingId];
|
this._prefs[settingId] = savedPrefs[settingId];
|
||||||
@ -1650,7 +1657,7 @@ function interceptHttpRequests() {
|
|||||||
// Get region
|
// Get region
|
||||||
if (url.endsWith('/sessions/cloud/play')) {
|
if (url.endsWith('/sessions/cloud/play')) {
|
||||||
// Start hiding cursor
|
// Start hiding cursor
|
||||||
if (PREFS.get(Preferences.HIDE_IDLE_CURSOR)) {
|
if (PREFS.get(Preferences.STREAM_HIDE_IDLE_CURSOR)) {
|
||||||
MouseCursorHider.start();
|
MouseCursorHider.start();
|
||||||
MouseCursorHider.hide();
|
MouseCursorHider.hide();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user