Skip to content

Commit ec15e35

Browse files
est31paramat
authored andcommittedMay 13, 2016
Mainmenu: don't show change keys dialog on android
The change keys dialog can't be left. It doesn't make much sense to show it on Android in the first place, therefore disable it, just like commit aed70cb 'Disable sound and key binding settings in "pause" menu on android' has disabled it for the esc menu. Fixes #4115.
1 parent 9d3d43f commit ec15e35

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed
 

Diff for: ‎builtin/mainmenu/tab_settings.lua

+8-2
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,15 @@ local function formspec(tabview, name, tabdata)
203203
"checkbox[8,0;cb_shaders;" .. fgettext("Shaders") .. ";"
204204
.. dump(core.setting_getbool("enable_shaders")) .. "]"
205205

206+
if PLATFORM ~= "Android" then
207+
tab_string = tab_string ..
208+
"button[8,4.75;3.75,0.5;btn_change_keys;"
209+
.. fgettext("Change keys") .. "]"
210+
end
211+
206212
tab_string = tab_string ..
207-
"button[8,4.75;3.75,0.5;btn_change_keys;" .. fgettext("Change keys") .. "]" ..
208-
"button[0,4.75;3.75,0.5;btn_advanced_settings;" .. fgettext("Advanced Settings") .. "]"
213+
"button[0,4.75;3.75,0.5;btn_advanced_settings;"
214+
.. fgettext("Advanced Settings") .. "]"
209215

210216

211217
if core.setting_get("touchscreen_threshold") ~= nil then

0 commit comments

Comments
 (0)
Please sign in to comment.