Fix: Sidebar Darstellung korrigert

- Zusätzlich Menueinträge Top Streams
- Topstreams DE und EN  anzeige filterte Livestreams.
- Einstellung Sidebarbreite und Flaggenbadge (Slider) hinzugefügt.
This commit is contained in:
Andre
2026-04-11 22:05:24 +02:00
parent cfb8a0b790
commit c84b8e16fe
16 changed files with 714 additions and 123 deletions
+7 -1
View File
@@ -60,7 +60,13 @@ export function registerIpcHandlers(
)
ipcMain.handle(
IPC.twitchGetTopStreams,
(_e, gameId?: string) => helix.getTopStreams(gameId ? { gameId, limit: 40 } : { limit: 100 })
(_e, options?: { gameId?: string; language?: string; cursor?: string; limit?: number }) =>
helix.getTopStreams({
gameId: options?.gameId,
language: options?.language,
cursor: options?.cursor,
limit: options?.limit ?? (options?.gameId ? 40 : 100)
})
)
ipcMain.handle(
IPC.twitchGetVideos,