[desktop] Prevent accidental dismissal of auto update dialog (#1744)

This commit is contained in:
Manav Rathi 2024-05-16 20:17:36 +05:30 committed by GitHub
commit f75bb91af0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -68,6 +68,7 @@ export const getUpdateReadyToInstallMessage = ({
variant: "secondary",
action: () => ensureElectron().updateOnNextRestart(version),
},
staticBackdrop: true,
});
export const getUpdateAvailableForDownloadMessage = ({

View file

@ -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;