Active GPU selection fix

This commit is contained in:
Observer KRypt0n_ 2021-12-10 11:16:00 +02:00
parent cd67e62521
commit 15cb5329b0
No known key found for this signature in database
GPG key ID: DC5D4EC1303465DA

View file

@ -265,7 +265,7 @@ $(() => {
SwitcherooControl.getGpuByName(LauncherLib.getConfig('gpu')).then((gpu) => {
if (gpu)
{
$(`#gpu li[value=${gpu.Name.value}]`).addClass('selected');
$(`#gpu li[value="${gpu.Name.value}"]`).addClass('selected');
$('#gpu .selected-item span').text(gpu.Name.value);
}
});
@ -274,8 +274,8 @@ $(() => {
console.log('switcheroo-control not running');
$('#gpu .selected-item')
.addClass('hint--top hint--medium')
.attr('data-hint', LauncherUI.i18n.translate('SwitcherooNotInstalled'));
.addClass('hint--top hint--medium')
.attr('data-hint', LauncherUI.i18n.translate('SwitcherooNotInstalled'));
});
$('#gpu').on('selectionChanged', (e, data: any) => {