mirror of
https://github.com/Boof2015/prism.git
synced 2026-08-12 05:10:51 +02:00
fix icon issue on macos
This commit is contained in:
+1
-1
@@ -308,7 +308,7 @@ function getStaticWindowIconOptions(): Pick<BrowserWindowConstructorOptions, 'ic
|
||||
}
|
||||
|
||||
function applyStaticDockIcon(): void {
|
||||
if (process.platform !== 'darwin') {
|
||||
if (process.platform !== 'darwin' || app.isPackaged) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -2449,6 +2449,7 @@ test('toolbar uses the Prism logo support link and static package icons are conf
|
||||
|
||||
assert.match(mainSource, /nativeImage/)
|
||||
assert.match(mainSource, /function applyStaticDockIcon\(\)/)
|
||||
assert.match(mainSource, /process\.platform !== 'darwin' \|\| app\.isPackaged/)
|
||||
assert.match(mainSource, /app\.dock\?\.setIcon\(icon\)/)
|
||||
assert.match(mainSource, /applyStaticDockIcon\(\)/)
|
||||
assert.match(mainSource, /function getStaticWindowIconOptions\(\)/)
|
||||
|
||||
Reference in New Issue
Block a user