Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions opennow-stable/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions opennow-stable/src/renderer/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ const resolutionOptions = getResolutionsByAspectRatio("16:9");

function getAppStyle(posterSizeScale: number): CSSProperties {
return {
["--game-poster-scale" as "--game-poster-scale"]: String(posterSizeScale),
};
"--game-poster-scale": String(posterSizeScale),
} as CSSProperties;
}
const SESSION_READY_POLL_INTERVAL_MS = 2000;
const SESSION_AD_POLL_INTERVAL_MS = 30000;
Expand Down Expand Up @@ -810,6 +810,7 @@ export function App(): JSX.Element {
enableL4S: false,
enableCloudGsync: false,
discordRichPresence: false,
posterSizeScale: 1,
});
const [settingsLoaded, setSettingsLoaded] = useState(false);
const [codecResults, setCodecResults] = useState<CodecTestResult[] | null>(() => loadStoredCodecResults());
Expand Down Expand Up @@ -3235,6 +3236,7 @@ export function App(): JSX.Element {
toggleStats: formatShortcutForDisplay(settings.shortcutToggleStats, isMac),
togglePointerLock: formatShortcutForDisplay(settings.shortcutTogglePointerLock, isMac),
stopStream: formatShortcutForDisplay(settings.shortcutStopStream, isMac),
toggleAntiAfk: shortcuts.toggleAntiAfk.canonical,
toggleMicrophone: formatShortcutForDisplay(settings.shortcutToggleMicrophone, isMac),
screenshot: shortcuts.screenshot.canonical,
recording: shortcuts.recording.canonical,
Expand Down
Loading
Loading