Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
redphx committed Dec 5, 2024
1 parent e1f8fce commit 5b67c34
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist/better-xcloud.lite.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4507,7 +4507,8 @@ class SettingsDialog extends NavigationDialog {
$note,
multiLines: setting.multiLines
});
$row.htmlFor = `bx_setting_${escapeCssSelector(pref)}`, $row.dataset.type = settingTabContent.group, $tabContent.appendChild($row), !prefDefinition?.unsupported && setting.onCreated && setting.onCreated(setting, $control);
if (pref) $row.htmlFor = `bx_setting_${escapeCssSelector(pref)}`;
$row.dataset.type = settingTabContent.group, $tabContent.appendChild($row), !prefDefinition?.unsupported && setting.onCreated && setting.onCreated(setting, $control);
}
renderSettingsSection(settingTab, sections) {
let $tabContent = CE("div", {
Expand Down
3 changes: 2 additions & 1 deletion dist/better-xcloud.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -6413,7 +6413,8 @@ class SettingsDialog extends NavigationDialog {
$note,
multiLines: setting.multiLines
});
$row.htmlFor = `bx_setting_${escapeCssSelector(pref)}`, $row.dataset.type = settingTabContent.group, $tabContent.appendChild($row), !prefDefinition?.unsupported && setting.onCreated && setting.onCreated(setting, $control);
if (pref) $row.htmlFor = `bx_setting_${escapeCssSelector(pref)}`;
$row.dataset.type = settingTabContent.group, $tabContent.appendChild($row), !prefDefinition?.unsupported && setting.onCreated && setting.onCreated(setting, $control);
}
renderSettingsSection(settingTab, sections) {
let $tabContent = CE("div", {
Expand Down
4 changes: 3 additions & 1 deletion src/modules/ui/dialog/settings-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,9 @@ export class SettingsDialog extends NavigationDialog {
$note,
multiLines: setting.multiLines,
});
$row.htmlFor = `bx_setting_${escapeCssSelector(pref!)}`;
if (pref) {
$row.htmlFor = `bx_setting_${escapeCssSelector(pref)}`;
}
$row.dataset.type = settingTabContent.group;

$tabContent.appendChild($row);
Expand Down

0 comments on commit 5b67c34

Please sign in to comment.