Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

Fix destructive menu icon showing app logo on non-macOS

Julius Marmingea3aa4bd18972
diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.ts
index 4fd4d0ba7..d28fdf172 100644
--- a/apps/desktop/src/main.ts
+++ b/apps/desktop/src/main.ts
@@ -40,27 +40,20 @@ let desktopProtocolRegistered = false;
let destructiveMenuIconCache: Electron.NativeImage | null | undefined;
function getDestructiveMenuIcon(): Electron.NativeImage | undefined {
+ if (process.platform !== "darwin") return undefined;
if (destructiveMenuIconCache !== undefined) {
return destructiveMenuIconCache ?? undefined;
}
try {
- const icon =
- process.platform === "darwin"
- ? nativeImage.createFromNamedImage("trash").resize({
- width: 14,
- height: 14,
- })
- : nativeImage.createFromPath(resolveIconPath("png") ?? "").resize({
- width: 14,
- height: 14,
- });
+ const icon = nativeImage.createFromNamedImage("trash").resize({
+ width: 14,
+ height: 14,
+ });
if (icon.isEmpty()) {
destructiveMenuIconCache = null;
return undefined;
}
- if (process.platform === "darwin") {
- icon.setTemplateImage(true);
- }
+ icon.setTemplateImage(true);
destructiveMenuIconCache = icon;
return icon;
} catch {