mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-11 06:47:01 +00:00
fix: on macOS use status-icon.icns instead of status.svg when setting app.icon()
This commit is contained in:
parent
7c116f8ea7
commit
dcd5766205
@ -32,12 +32,17 @@ proc mainProc() =
|
|||||||
"/../resources.rcc"
|
"/../resources.rcc"
|
||||||
QResource.registerResource(app.applicationDirPath & resources)
|
QResource.registerResource(app.applicationDirPath & resources)
|
||||||
|
|
||||||
let statusSvg =
|
let statusAppIcon =
|
||||||
if defined(windows) and getEnv("NIM_STATUS_CLIENT_DEV").string == "":
|
if defined(macosx):
|
||||||
|
if getEnv("NIM_STATUS_CLIENT_DEV").string == "":
|
||||||
|
"/../Resources/status-icon.icns"
|
||||||
|
else:
|
||||||
|
"/../status-icon.icns"
|
||||||
|
elif defined(windows) and getEnv("NIM_STATUS_CLIENT_DEV").string == "":
|
||||||
"/../resources/status.svg"
|
"/../resources/status.svg"
|
||||||
else:
|
else:
|
||||||
"/../status.svg"
|
"/../status.svg"
|
||||||
app.icon(app.applicationDirPath & statusSvg)
|
app.icon(app.applicationDirPath & statusAppIcon)
|
||||||
|
|
||||||
var i18nPath = ""
|
var i18nPath = ""
|
||||||
if (getEnv("NIM_STATUS_CLIENT_DEV").string != ""):
|
if (getEnv("NIM_STATUS_CLIENT_DEV").string != ""):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user