feat: Enhance protocol status handling and repair functionality in About and SSOLogin components

This commit is contained in:
2026-05-25 01:01:05 +10:00
parent a4a0fa6758
commit d1626e3585
3 changed files with 73 additions and 58 deletions
+14 -19
View File
@@ -61,41 +61,36 @@ interface ElectronAPI {
getStatus: () => Promise<{
success: boolean;
data?: {
scheme: string;
platform: string;
primaryScheme: string;
schemes: Record<string, {
isDefault: boolean;
before: boolean;
registerCall: boolean;
error: string | null;
}>;
windows: null | Record<string, {
isDefault: boolean;
before: boolean;
registerCall: boolean;
error: string | null;
windows: null | {
userChoiceProgId: string | null;
userChoiceCommand: string | null;
hkcuCommand: string | null;
hklmCommand: string | null;
}>;
};
};
error?: string;
}>;
repair: () => Promise<{
success: boolean;
data?: {
openedSettings: boolean;
scheme: string;
platform: string;
primaryScheme: string;
schemes: Record<string, {
isDefault: boolean;
before: boolean;
registerCall: boolean;
error: string | null;
}>;
windows: null | Record<string, {
isDefault: boolean;
before: boolean;
registerCall: boolean;
error: string | null;
windows: null | {
userChoiceProgId: string | null;
userChoiceCommand: string | null;
hkcuCommand: string | null;
hklmCommand: string | null;
}>;
};
};
error?: string;
}>;