1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-05 06:14:36 +00:00

just pushin b4 i switch branch

This commit is contained in:
MtH 2021-04-23 19:15:40 +02:00
parent 41e66b5d69
commit a1b927175a

View file

@ -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. * If false, there's no reason to ever show this page.
*/ */
public function hasMultipleOptions():Bool public function hasMultipleOptions():Bool
@ -267,11 +267,12 @@ class OptionsMenu extends Page
function checkLoginStatus() function checkLoginStatus()
{ {
// this shit don't work!! wtf!!!!
var prevLoggedIn = items.has("logout"); var prevLoggedIn = items.has("logout");
if (prevLoggedIn && !NGio.isLoggedIn) if (prevLoggedIn && !NGio.isLoggedIn)
items.resetItem("login", "logout", selectLogout);
else if (!prevLoggedIn && NGio.isLoggedIn)
items.resetItem("logout", "login", selectLogin); items.resetItem("logout", "login", selectLogin);
else if (!prevLoggedIn && NGio.isLoggedIn)
items.resetItem("login", "logout", selectLogout);
} }
#end #end
} }