mirror of
https://github.com/lhns/steam-frame-nix.git
synced 2026-10-06 07:00:27 +02:00
steamFrame.dashboard.steamCloseButton.enable (default false) gives the SteamVR dashboard's main Steam window a close button: it docks the window back into the dashboard, then switches to the previously active window or, with none, leaves just the dashboard bar. Bar-only survives dashboard reopens and patch restarts (state in window.__sfuiSteamCloseState, taken over from the earlier personal version 4 of this patch); the stock "no active frame -> show Steam" paths are suppressed while it lasts. MobX, the dock-location enum and the closing component class are found by signature; check-only signatures cover the dashboard internals it uses.
14 lines
590 B
JavaScript
14 lines
590 B
JavaScript
// Reverts steam-close-button/patch.js: removes its overrides, reactions and
|
|
// markers (the X disappears). Teardown only: it never switches frames and
|
|
// leaves window.__sfuiSteamCloseState (bar-only flag etc.) in place, so a
|
|
// re-injection (service restart, switch) continues where it left off; if the
|
|
// patch is gone for good while bar-only, the dashboard just stays without an
|
|
// active frame until the next tab click or dashboard open. Safe when not
|
|
// patched.
|
|
(() => {
|
|
const s = window.__sfuiSteamClose;
|
|
if (!s) return 'not patched';
|
|
s.teardown();
|
|
return 'unpatched';
|
|
})()
|