feat: add external ranked queue

This commit is contained in:
2026-04-04 10:46:39 -07:00
parent c915fff113
commit 71aaee391f
5 changed files with 575 additions and 1 deletions
+6
View File
@@ -15,6 +15,7 @@ import { showUpdateWindow } from './update-window';
import { DiscordRPC } from './discord-rpc';
import { listThemes, getThemeCSS, listLoadingThemes, getLoadingScreenCSS } from './css-themes';
import { TabManager } from './tab-manager';
import { openRankedQueue } from './ranked-queue';
// ── App version for API calls ──
// eslint-disable-next-line @typescript-eslint/no-require-imports
@@ -651,6 +652,11 @@ async function launchApp(): Promise<void> {
}
});
// ── Ranked queue IPC handler ──
ipcMain.on('open-ranked-queue', (_e, token: string, region: string, allRegions: boolean) => {
openRankedQueue(token, region, allRegions);
});
// ── Discord Rich Presence IPC handler ──
ipcMain.on('discord-update', (_e, activity: any) => {
discordRpc?.setActivity(activity);