Skip to content

Commit ae44d28

Browse files
committed
fix(desktop): keep packaged dock icon rendering consistent
1 parent 41d41f3 commit ae44d28

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/desktop/src/main/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,9 @@ function main(): void {
412412
})
413413

414414
void app.whenReady().then(async () => {
415-
// Unpackaged runs show Electron's default Dock icon (the packaged icns
416-
// only applies to built apps), so use the active origin's icon at runtime.
417-
if (!app.isPackaged && process.platform === 'darwin') {
415+
// Use the same high-resolution source in packaged and unpackaged apps so
416+
// macOS renders every environment marker consistently in the Dock.
417+
if (process.platform === 'darwin') {
418418
const channel = channelForOrigin(config.getOrigin())
419419
app.dock?.setIcon(join(__dirname, '..', 'static', DOCK_ICON_FOR_CHANNEL[channel]))
420420
}

0 commit comments

Comments
 (0)