Android: Re-add button to remove singleplayer world
authorest31 <MTest31@outlook.com>
Sat, 14 May 2016 20:12:38 +0000 (22:12 +0200)
committerest31 <MTest31@outlook.com>
Sat, 14 May 2016 20:25:58 +0000 (22:25 +0200)
Fixes #4120.

builtin/mainmenu/tab_settings.lua

index b9f2453abbb745a5f62e957c008152b1e13aec44..af8df0ccb143556911359fd8946c41e724f7f542 100644 (file)
@@ -203,7 +203,11 @@ local function formspec(tabview, name, tabdata)
                "checkbox[8,0;cb_shaders;" .. fgettext("Shaders") .. ";"
                                .. dump(core.setting_getbool("enable_shaders")) .. "]"
 
-       if PLATFORM ~= "Android" then
+       if PLATFORM == "Android" then
+               tab_string = tab_string ..
+                       "button[8,4.75;3.75,0.5;btn_reset_singleplayer;"
+                       .. fgettext("Reset singleplayer world") .. "]"
+       else
                tab_string = tab_string ..
                        "button[8,4.75;3.75,0.5;btn_change_keys;"
                        .. fgettext("Change keys") .. "]"