Skip to content

Commit 9080d7c

Browse files
authoredDec 23, 2018
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.
1 parent 67049eb commit 9080d7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎builtin/mainmenu/tab_settings.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ local function formspec(tabview, name, tabdata)
220220
fgettext("Shaders (unavailable)")) .. "]"
221221
end
222222

223-
if PLATFORM == "Android" then
223+
if core.settings:get("main_menu_style") == "simple" then
224+
-- 'Reset singleplayer world' only functions with simple menu
224225
tab_string = tab_string ..
225226
"button[8,4.75;3.95,1;btn_reset_singleplayer;"
226227
.. fgettext("Reset singleplayer world") .. "]"

0 commit comments

Comments
 (0)
Please sign in to comment.