feat: Add protocol status handling and repair functionality in About component

This commit is contained in:
2026-05-25 00:34:13 +10:00
parent 8de528da9a
commit a4a0fa6758
2 changed files with 166 additions and 3 deletions
+43
View File
@@ -57,6 +57,49 @@ interface ElectronAPI {
writeText: (text: string) => void;
};
plugins?: PluginAPI;
protocol?: {
getStatus: () => Promise<{
success: boolean;
data?: {
platform: string;
primaryScheme: string;
schemes: Record<string, {
isDefault: boolean;
before: boolean;
registerCall: boolean;
error: string | null;
}>;
windows: null | Record<string, {
userChoiceProgId: string | null;
userChoiceCommand: string | null;
hkcuCommand: string | null;
hklmCommand: string | null;
}>;
};
error?: string;
}>;
repair: () => Promise<{
success: boolean;
data?: {
openedSettings: boolean;
platform: string;
primaryScheme: string;
schemes: Record<string, {
isDefault: boolean;
before: boolean;
registerCall: boolean;
error: string | null;
}>;
windows: null | Record<string, {
userChoiceProgId: string | null;
userChoiceCommand: string | null;
hkcuCommand: string | null;
hklmCommand: string | null;
}>;
};
error?: string;
}>;
};
}
declare global {