flatpak/linux, closes #54
Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
+15
-9
@@ -392,16 +392,22 @@ async function parseRemotes(remotes: string[]) {
|
|||||||
|
|
||||||
let iconPath = await resolveResource('icons/favicon/icon.png')
|
let iconPath = await resolveResource('icons/favicon/icon.png')
|
||||||
|
|
||||||
try {
|
if (['windows', 'macos'].includes(platform())) {
|
||||||
if (remoteInfo?.provider) {
|
try {
|
||||||
iconPath = await resolveResource(`icons/small/providers/${remoteInfo.provider}.png`)
|
if (remoteInfo?.provider) {
|
||||||
} else if (remoteInfo?.type) {
|
iconPath = await resolveResource(
|
||||||
iconPath = await resolveResource(`icons/small/backends/${remoteInfo?.type}.png`)
|
`icons/small/providers/${remoteInfo.provider}.png`
|
||||||
|
)
|
||||||
|
} else if (remoteInfo?.type) {
|
||||||
|
iconPath = await resolveResource(`icons/small/backends/${remoteInfo?.type}.png`)
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
Sentry.captureException(
|
||||||
|
new Error(`Error resolving icon path for ${remote}: ${error}`)
|
||||||
|
)
|
||||||
|
Sentry.captureException(error)
|
||||||
|
console.error('Error resolving icon path for', remote, error)
|
||||||
}
|
}
|
||||||
} catch (error) {
|
|
||||||
Sentry.captureException(new Error(`Error resolving icon path for ${remote}: ${error}`))
|
|
||||||
Sentry.captureException(error)
|
|
||||||
console.error('Error resolving icon path for', remote, error)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
parsedRemotes[remote] = {
|
parsedRemotes[remote] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user