From 57e94d48d90436e084359f582e1856c3c44c44da Mon Sep 17 00:00:00 2001 From: Der_Googler <54764558+DerGoogler@users.noreply.github.com> Date: Mon, 19 Aug 2024 18:17:44 +0200 Subject: [PATCH] 3.22.24 --- package.json | 4 ++-- src/activitys/InstallTerminalV2Activity.tsx | 21 +++------------------ 2 files changed, 5 insertions(+), 20 deletions(-) diff --git a/package.json b/package.json index f240e20a..ddc736e6 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ "application_id": "com.dergoogler.mmrl", "min_sdk": 26, "target_sdk": 34, - "version_name": "3.22.23", - "version_code": 32223, + "version_name": "3.22.24", + "version_code": 32224, "verified_hosts": [ [ "mmrl", diff --git a/src/activitys/InstallTerminalV2Activity.tsx b/src/activitys/InstallTerminalV2Activity.tsx index a0c5015a..8f12e60b 100644 --- a/src/activitys/InstallTerminalV2Activity.tsx +++ b/src/activitys/InstallTerminalV2Activity.tsx @@ -229,7 +229,6 @@ export const InstallTerminalV2Activity = () => { const termEndRef = React.useRef(null); - const [active, setActive] = React.useState(true); const { lines, addText, addButton, setLastLine } = useLines({ color: (args, _, add) => { add.addText(formatString(args[0], colors)); @@ -370,7 +369,6 @@ export const InstallTerminalV2Activity = () => { if (source) { addText(`> \x1b[32mSource: \x1b[33m${source}\x1b[0m`); } - setActive(false); break; case Shell.M_INS_FAILURE: addText(" "); @@ -383,15 +381,12 @@ export const InstallTerminalV2Activity = () => { if (source) { addText(`> \x1b[32mSource: \x1b[33m${source}\x1b[0m`); } - setActive(false); break; case Shell.TERM_INTR_ERR: addText("! \x1b[31mInternal error!\x1b[0m"); - setActive(false); break; default: addText("? Unknown code returned"); - setActive(false); break; } }; @@ -410,7 +405,6 @@ export const InstallTerminalV2Activity = () => { setDownloadProgress(0); addText("! \x1b[31mUnable to download the module\x1b[0m"); addText("! \x1b[31mERR: " + err + "\x1b[0m"); - setActive(false); }; dl.start(); @@ -452,8 +446,6 @@ export const InstallTerminalV2Activity = () => { addText( "\x1b[2mModules that causes issues after installing belog not to \x1b[35;4mMMRL\x1b[0;2m!\nPlease report these issues to thier support page\x1b[2m" ); - - setActive(false); break; case Shell.M_INS_FAILURE: @@ -462,18 +454,14 @@ export const InstallTerminalV2Activity = () => { addText( "\x1b[2mModules that causes issues after installing belog not to \x1b[35;4mMMRL\x1b[0;2m!\nPlease report these issues to thier support page\x1b[2m" ); - - setActive(false); break; case Shell.TERM_INTR_ERR: addText("! \x1b[31mInternal error!\x1b[0m"); - setActive(false); break; default: addText("- Unknown code returned"); - setActive(false); break; } }; @@ -494,7 +482,9 @@ export const InstallTerminalV2Activity = () => { position: "relative !important", }} > - {!active && } + + + Install {downloadProgress !== 0 && ( { return ( { - if (!active) { - e.callParentHandler(); - } - }} sx={{ pl: 1, pr: 1,