Add dropdown arrow to library to show/hide games

This commit is contained in:
Lncvrt committed 2026-07-29 05:31:08 -07:00
1 parent bac028efc3
commit 28b88f4033
4 files changed
+34 -1

No files matched your search

+5
View File
@@ -86,6 +86,7 @@ export default function RootLayout ({
const [versions, setVersions] = useState<Store | null>(null)
const [account, setAccount] = useState<Store | null>(null)
const [sidebarShowGames, setSidebarShowGames] = useState<boolean>(false)
const [linuxUseWine, setLinuxUseWine] = useState<boolean>(false)
const [linuxWineCommand, setLinuxWineCommand] =
useState<string>('wine %path%')
@@ -827,6 +828,9 @@ export default function RootLayout ({
}
watchSettings<string>('theme', v => setTheme(v ?? 'dark'))
watchSettings<boolean>('sidebarShowGames', v =>
setSidebarShowGames(v ?? true)
)
watchSettings<boolean>('linuxUseWine', v => setLinuxUseWine(v ?? false))
watchSettings<string>('linuxWineCommand', v =>
setLinuxWineCommand(v ?? 'wine %path%')
@@ -892,6 +896,7 @@ export default function RootLayout ({
settings,
versions,
account,
sidebarShowGames,
linuxUseWine,
linuxWineCommand,
theme,