mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 08:07:18 +02:00
Don't show the "Close app" button in Guide Menu when playing
This commit is contained in:
parent
110106aa97
commit
03ad02bd4d
@ -26,13 +26,17 @@ export class GuideMenu {
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
||||||
closeApp: createButton({
|
closeApp: AppInterface && createButton({
|
||||||
icon: BxIcon.POWER,
|
icon: BxIcon.POWER,
|
||||||
title: t('close-app'),
|
title: t('close-app'),
|
||||||
style: ButtonStyle.FULL_WIDTH | ButtonStyle.FOCUSABLE | ButtonStyle.DANGER,
|
style: ButtonStyle.FULL_WIDTH | ButtonStyle.FOCUSABLE | ButtonStyle.DANGER,
|
||||||
onClick: e => {
|
onClick: e => {
|
||||||
AppInterface.closeApp();
|
AppInterface.closeApp();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
attributes: {
|
||||||
|
'data-state': 'normal',
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
|
|
||||||
reloadPage: createButton({
|
reloadPage: createButton({
|
||||||
@ -95,7 +99,7 @@ export class GuideMenu {
|
|||||||
[
|
[
|
||||||
GuideMenu.#BUTTONS.backToHome,
|
GuideMenu.#BUTTONS.backToHome,
|
||||||
GuideMenu.#BUTTONS.reloadPage,
|
GuideMenu.#BUTTONS.reloadPage,
|
||||||
AppInterface && GuideMenu.#BUTTONS.closeApp,
|
GuideMenu.#BUTTONS.closeApp,
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user