mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Improve error messaging for startup database error
This commit is contained in:
17
ts/util/getAppErrorIcon.ts
Normal file
17
ts/util/getAppErrorIcon.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { nativeImage } from 'electron';
|
||||
import type { NativeImage } from 'electron';
|
||||
import { join } from 'path';
|
||||
|
||||
export function getAppErrorIcon(): NativeImage {
|
||||
const iconPath = join(
|
||||
__dirname,
|
||||
'..',
|
||||
'..',
|
||||
'images',
|
||||
'app-icon-with-error.png'
|
||||
);
|
||||
return nativeImage.createFromPath(iconPath);
|
||||
}
|
||||
Reference in New Issue
Block a user