mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-12 08:05:15 +02:00
Highlight "Bypass region" row in unsupported regions
This commit is contained in:
@@ -949,6 +949,11 @@ export class SettingsDialog extends NavigationDialog {
|
||||
}
|
||||
$row.dataset.type = settingTabContent.group;
|
||||
|
||||
// Highlight "Bypass region" row
|
||||
if (!STATES.supportedRegion && setting.pref === GlobalPref.SERVER_BYPASS_RESTRICTION) {
|
||||
$row.classList.add('bx-settings-important-row');
|
||||
}
|
||||
|
||||
$tabContent.appendChild($row);
|
||||
!prefDefinition?.unsupported && setting.onCreated && setting.onCreated(setting, $control);
|
||||
}
|
||||
|
Reference in New Issue
Block a user