From f534c83fe6e1e58fbd8bdef36b8e4eae3ef8044e Mon Sep 17 00:00:00 2001 From: Dragoon Dorise Date: Fri, 9 Feb 2024 10:54:17 +0100 Subject: [PATCH] android fixes --- src/renderer/pages/AndroidEndPage.jsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/renderer/pages/AndroidEndPage.jsx b/src/renderer/pages/AndroidEndPage.jsx index 01e09d9..f2312f3 100644 --- a/src/renderer/pages/AndroidEndPage.jsx +++ b/src/renderer/pages/AndroidEndPage.jsx @@ -45,6 +45,9 @@ function AndroidEndPage() { messagePercent = messagePercent.replaceAll('\n\r', ''); messagePercent = messagePercent.replaceAll('\r', ''); setMsg({ message: messageText, percentage: messagePercent }); + if (messageText.includes('100')) { + setStatePage({ ...statePage, disabledNext: false }); + } }); }; @@ -125,11 +128,7 @@ function AndroidEndPage() { useEffect(() => { if (disabledNext) { const interval = setInterval(() => { - if (system === 'win32') { - readMSG(); - } else { - readMSG(); - } + readMSG(); if (message.includes('100ANDROID')) { clearInterval(interval);