add auto-updater
This commit is contained in:
+13
-2
@@ -67,9 +67,16 @@ export interface AppContextType {
|
||||
/** Show an info message dialog */
|
||||
showInfo: (message: string) => void;
|
||||
/** Show a confirmation dialog */
|
||||
confirm: (message: string) => Promise<boolean>;
|
||||
confirm: (
|
||||
message: string,
|
||||
options?: {
|
||||
title?: string;
|
||||
confirmLabel?: string;
|
||||
cancelLabel?: string;
|
||||
},
|
||||
) => Promise<boolean>;
|
||||
/** Exit the application */
|
||||
exit: () => void;
|
||||
exit: () => Promise<void>;
|
||||
/** Update status bar message */
|
||||
setStatus: (message: string) => void;
|
||||
}
|
||||
@@ -84,6 +91,10 @@ export interface DialogState {
|
||||
type: "error" | "info" | "confirm";
|
||||
/** Dialog message */
|
||||
message: string;
|
||||
/** Optional confirmation presentation labels. */
|
||||
title?: string;
|
||||
confirmLabel?: string;
|
||||
cancelLabel?: string;
|
||||
/** Callback for confirm dialog */
|
||||
onConfirm?: () => void;
|
||||
/** Callback for cancel/dismiss */
|
||||
|
||||
Reference in New Issue
Block a user