mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 21:28:27 +02:00
Show stats in the Guide menu & refactor
This commit is contained in:
@@ -268,7 +268,8 @@ function setupStreamSettingsDialog() {
|
||||
{
|
||||
pref: PrefKey.STATS_QUICK_GLANCE,
|
||||
onChange: (e: InputEvent) => {
|
||||
(e.target! as HTMLInputElement).checked ? StreamStats.quickGlanceSetup() : StreamStats.quickGlanceStop();
|
||||
const streamStats = StreamStats.getInstance();
|
||||
(e.target! as HTMLInputElement).checked ? streamStats.quickGlanceSetup() : streamStats.quickGlanceStop();
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -520,7 +521,6 @@ export function setupStreamUi() {
|
||||
|
||||
window.addEventListener('resize', updateVideoPlayerCss);
|
||||
setupStreamSettingsDialog();
|
||||
StreamStats.render();
|
||||
|
||||
Screenshot.setup();
|
||||
}
|
||||
|
Reference in New Issue
Block a user