From d6e9de24bf9e6db3bd4912835485c2dbd5fb5809 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Thu, 27 Feb 2025 13:52:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UpdateModal/index.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/UpdateModal/index.tsx b/src/components/UpdateModal/index.tsx index 0b3aa2c..34c04bb 100644 --- a/src/components/UpdateModal/index.tsx +++ b/src/components/UpdateModal/index.tsx @@ -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} >