This commit is contained in:
parent
860f141782
commit
d6e9de24bf
|
|
@ -60,9 +60,9 @@ const UpdateModal = forwardRef((props: any, ref: any) => {
|
|||
}
|
||||
|
||||
function closeModal() {
|
||||
if (progress != 100) {
|
||||
window.electron.onDownload('0') // 取消下载
|
||||
}
|
||||
// if (progress != 100) {
|
||||
// window.electron.onDownload('0') // 取消下载
|
||||
// }
|
||||
setIsUpdateModal(false)
|
||||
}
|
||||
|
||||
|
|
@ -72,12 +72,12 @@ const UpdateModal = forwardRef((props: any, ref: any) => {
|
|||
title=""
|
||||
open={isUpdateModal}
|
||||
footer={null}
|
||||
// onCancel={() => closeModal()}
|
||||
onCancel={() => closeModal()}
|
||||
centered
|
||||
width={'400px'}
|
||||
className='modal-padding'
|
||||
maskClosable={false}
|
||||
closeIcon={false}
|
||||
closeIcon={progress === 100 ? false : true}
|
||||
>
|
||||
<div className={styles.isUpdateModal} style={{ backgroundImage: `url(${ImageUrl.icon7})` }}>
|
||||
<div className={styles.remarks} dangerouslySetInnerHTML={{ __html: updateContent }}>
|
||||
|
|
|
|||
Loading…
Reference in New Issue