[desktop] Prevent accidental dismissal of auto update dialog

This commit is contained in:
Manav Rathi 2024-05-16 20:02:28 +05:30
parent 2d13c1ebb5
commit 9fc07b592b
No known key found for this signature in database
2 changed files with 5 additions and 0 deletions

View file

@ -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 = ({

View file

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