Skip to content
Permalink
Browse files

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.
  • Loading branch information...
paramat committed Dec 23, 2018
1 parent 67049eb commit 9080d7c990e9efd52c418369c83dd365837f2f05
Showing with 2 additions and 1 deletion.
  1. +2 −1 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") .. "]"

0 comments on commit 9080d7c

Please sign in to comment.
You can’t perform that action at this time.