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