mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-03-07 16:47:58 +03:00
Active GPU selection fix
This commit is contained in:
parent
cd67e62521
commit
15cb5329b0
1 changed files with 3 additions and 3 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue