From a1b927175a73d1d6759886cb5ffea57282c21999 Mon Sep 17 00:00:00 2001 From: MtH Date: Fri, 23 Apr 2021 19:15:40 +0200 Subject: [PATCH] just pushin b4 i switch branch --- source/ui/OptionsState.hx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/ui/OptionsState.hx b/source/ui/OptionsState.hx index 14e772986..10ec025da 100644 --- a/source/ui/OptionsState.hx +++ b/source/ui/OptionsState.hx @@ -215,7 +215,7 @@ class OptionsMenu extends Page } /** - * True if this page has multiple options, ecluding the exit option. + * True if this page has multiple options, excluding the exit option. * If false, there's no reason to ever show this page. */ public function hasMultipleOptions():Bool @@ -267,11 +267,12 @@ class OptionsMenu extends Page function checkLoginStatus() { + // this shit don't work!! wtf!!!! var prevLoggedIn = items.has("logout"); if (prevLoggedIn && !NGio.isLoggedIn) - items.resetItem("login", "logout", selectLogout); - else if (!prevLoggedIn && NGio.isLoggedIn) items.resetItem("logout", "login", selectLogin); + else if (!prevLoggedIn && NGio.isLoggedIn) + items.resetItem("login", "logout", selectLogout); } #end }