From 58757c29272aecc0cec59d0395bf10714d887585 Mon Sep 17 00:00:00 2001 From: Benau Date: Sat, 3 Mar 2018 14:31:38 +0800 Subject: [PATCH] Hide create server buttons for android --- src/states_screens/online_lan.cpp | 3 +++ src/states_screens/online_profile_servers.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/states_screens/online_lan.cpp b/src/states_screens/online_lan.cpp index d1b62a36b..3cf451200 100644 --- a/src/states_screens/online_lan.cpp +++ b/src/states_screens/online_lan.cpp @@ -57,6 +57,9 @@ OnlineLanScreen::OnlineLanScreen() : GUIEngine::Screen("online/lan.stkgui") void OnlineLanScreen::loadedFromFile() { +#ifdef ANDROID + getWidget("create_lan_server")->setVisible(false); +#endif } // loadedFromFile // ----------------------------------------------------------------------------- diff --git a/src/states_screens/online_profile_servers.cpp b/src/states_screens/online_profile_servers.cpp index 7c0ff9cca..e6cc58c1f 100644 --- a/src/states_screens/online_profile_servers.cpp +++ b/src/states_screens/online_profile_servers.cpp @@ -62,6 +62,9 @@ void OnlineProfileServers::loadedFromFile() getWidget("create_wan_server")->setActive(false); getWidget("quick_wan_play")->setActive(false); } +#ifdef ANDROID + getWidget("create_wan_server")->setVisible(false); +#endif } // loadedFromFile // -----------------------------------------------------------------------------