Skip to content

Commit

Permalink
3.22.24
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGoogler committed Aug 19, 2024
1 parent 1b88570 commit 57e94d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
21 changes: 3 additions & 18 deletions src/activitys/InstallTerminalV2Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ export const InstallTerminalV2Activity = () => {

const termEndRef = React.useRef<HTMLDivElement>(null);

const [active, setActive] = React.useState<bool>(true);
const { lines, addText, addButton, setLastLine } = useLines({
color: (args, _, add) => {
add.addText(formatString(args[0], colors));
Expand Down Expand Up @@ -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(" ");
Expand All @@ -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;
}
};
Expand All @@ -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();
Expand Down Expand Up @@ -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:
Expand All @@ -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;
}
};
Expand All @@ -494,7 +482,9 @@ export const InstallTerminalV2Activity = () => {
position: "relative !important",
}}
>
<Toolbar.Left>{!active && <Toolbar.BackButton onClick={context.popPage} />}</Toolbar.Left>
<Toolbar.Left>
<Toolbar.BackButton onClick={context.popPage} />
</Toolbar.Left>
<Toolbar.Center>Install</Toolbar.Center>
{downloadProgress !== 0 && (
<LinearProgress
Expand All @@ -509,11 +499,6 @@ export const InstallTerminalV2Activity = () => {

return (
<Page
onDeviceBackButton={(e) => {
if (!active) {
e.callParentHandler();
}
}}
sx={{
pl: 1,
pr: 1,
Expand Down

0 comments on commit 57e94d4

Please sign in to comment.