From 9934ac3212f069943be54658dbde9b88923ff3f8 Mon Sep 17 00:00:00 2001 From: Happy_mimimix Date: Mon, 10 Feb 2025 13:19:03 -0500 Subject: [PATCH] Update Main.lua --- Installer/Main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Installer/Main.lua b/Installer/Main.lua index ac1b5490..eaba22a7 100644 --- a/Installer/Main.lua +++ b/Installer/Main.lua @@ -352,7 +352,7 @@ end local function checkUserInputs() local nameEmpty = #usernameInput.text == 0 local nameVaild = usernameInput.text:match("^%w[%w%s_]+$") - local passValid = withoutPasswordSwitchAndLabel.switch.state or #passwordInput.text == 0 or #passwordSubmitInput.text == 0 or passwordInput.text == passwordSubmitInput.text + local passValid = withoutPasswordSwitchAndLabel.switch.state or (#passwordInput.text > 0 and #passwordSubmitInput.text > 0 and passwordInput.text == passwordSubmitInput.text) if (nameEmpty or nameVaild) and passValid then usernamePasswordText.hidden = true @@ -418,7 +418,7 @@ end) -- Filesystem selection stage addStage(function() prevButton.disabled = false - nextButton.disabled = false + nextButton.disabled = true layout:addChild(GUI.object(1, 1, 1, 1)) addTitle(0x696969, localization.select)