Remove 'Reset singleplayer world' button from full menu on Android (#8017)
authorParamat <paramat@users.noreply.github.com>
Sun, 23 Dec 2018 23:49:08 +0000 (23:49 +0000)
committerGitHub <noreply@github.com>
Sun, 23 Dec 2018 23:49:08 +0000 (23:49 +0000)
Make button appearence dependent on menustyle not platform.
Button only functions with simple menu.

builtin/mainmenu/tab_settings.lua

index 7b2cee6ac1550721275c376dce9b7b8aec21a687..fb07d51be2b4b23b4136c1b2609b44462806b66b 100644 (file)
@@ -220,7 +220,8 @@ local function formspec(tabview, name, tabdata)
                                        fgettext("Shaders (unavailable)")) .. "]"
        end
 
-       if PLATFORM == "Android" then
+       if core.settings:get("main_menu_style") == "simple" then
+               -- 'Reset singleplayer world' only functions with simple menu
                tab_string = tab_string ..
                        "button[8,4.75;3.95,1;btn_reset_singleplayer;"
                        .. fgettext("Reset singleplayer world") .. "]"