[desktop] Prevent accidental dismissal of auto update dialog
This commit is contained in:
parent
2d13c1ebb5
commit
9fc07b592b
|
@ -68,6 +68,7 @@ export const getUpdateReadyToInstallMessage = ({
|
||||||
variant: "secondary",
|
variant: "secondary",
|
||||||
action: () => ensureElectron().updateOnNextRestart(version),
|
action: () => ensureElectron().updateOnNextRestart(version),
|
||||||
},
|
},
|
||||||
|
staticBackdrop: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
export const getUpdateAvailableForDownloadMessage = ({
|
export const getUpdateAvailableForDownloadMessage = ({
|
||||||
|
|
|
@ -3,6 +3,10 @@ import { ButtonProps } from "@mui/material";
|
||||||
export interface DialogBoxAttributes {
|
export interface DialogBoxAttributes {
|
||||||
icon?: React.ReactNode;
|
icon?: React.ReactNode;
|
||||||
title?: string;
|
title?: string;
|
||||||
|
/**
|
||||||
|
* Set this to `true` to prevent the dialog from being closed when the user
|
||||||
|
* clicks the backdrop outside the dialog.
|
||||||
|
*/
|
||||||
staticBackdrop?: boolean;
|
staticBackdrop?: boolean;
|
||||||
nonClosable?: boolean;
|
nonClosable?: boolean;
|
||||||
content?: any;
|
content?: any;
|
||||||
|
|
Loading…
Reference in a new issue