Files
cindy/apps/desktop/src/shared/openPathResult.ts
2026-09-13 19:19:35 +07:00

11 lines
336 B
TypeScript

/** An IPC lifecycle failure does not establish whether the OS opened the path. */
export interface OpenPathResult {
success: boolean;
error?: string;
failureKind?: 'ipc_lifecycle';
}
export function shouldShowOpenPathError(result: OpenPathResult): boolean {
return !result.success && result.failureKind !== 'ipc_lifecycle';
}