From 96e0cbfc07315cc560c7e8ae56326cde6e6bd29e Mon Sep 17 00:00:00 2001 From: bigjakk Date: Sun, 1 Mar 2026 07:46:07 -0800 Subject: [PATCH] Always show Accounts button, fix Linux CI electronDist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Show Accounts menu button even with no saved accounts so users can add accounts from the in-game menu. Remove hardcoded electronDist from electron-builder.yml — let electron-builder auto-detect on Linux CI, Windows CI overrides via -c.electronDist flag. Co-Authored-By: Claude Opus 4.6 --- electron-builder.yml | 1 - src/preload/index.ts | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/electron-builder.yml b/electron-builder.yml index a934f3b..45cd01b 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -1,6 +1,5 @@ appId: com.krunkercivilian.client productName: Krunker Civilian Client -electronDist: node_modules/electron/dist directories: output: out buildResources: build diff --git a/src/preload/index.ts b/src/preload/index.ts index f812ba3..aa55d63 100644 --- a/src/preload/index.ts +++ b/src/preload/index.ts @@ -1493,9 +1493,7 @@ ipcRenderer.on('main_did-finish-load', () => { } // ── In-game Accounts quick-switch button ── if (isGamePage) { - ipcRenderer.invoke('alt-list').then((accounts: any[]) => { - if (!accounts || accounts.length === 0) return; - + ipcRenderer.invoke('alt-list').then(() => { const altBtn = document.createElement('div'); altBtn.id = 'kpcAltBtn'; altBtn.className = 'menuItem';