From 9080d7c990e9efd52c418369c83dd365837f2f05 Mon Sep 17 00:00:00 2001 From: Paramat Date: Sun, 23 Dec 2018 23:49:08 +0000 Subject: [PATCH] Remove 'Reset singleplayer world' button from full menu on Android (#8017) Make button appearence dependent on menustyle not platform. Button only functions with simple menu. --- builtin/mainmenu/tab_settings.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builtin/mainmenu/tab_settings.lua b/builtin/mainmenu/tab_settings.lua index 7b2cee6ac..fb07d51be 100644 --- a/builtin/mainmenu/tab_settings.lua +++ b/builtin/mainmenu/tab_settings.lua @@ -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") .. "]" -- 2.25.1