File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,16 @@ local function init_globals()
106
106
if last_tab and tv_main .current_tab ~= last_tab then
107
107
tv_main :set_tab (last_tab )
108
108
end
109
+
110
+ -- In case the folder of the last selected game has been deleted,
111
+ -- display "Minetest" as a header
112
+ if tv_main .current_tab == " local" then
113
+ local game = pkgmgr .find_by_gameid (core .settings :get (" menu_last_game" ))
114
+ if game == nil then
115
+ mm_texture .reset ()
116
+ end
117
+ end
118
+
109
119
ui .set_default (" maintab" )
110
120
tv_main :show ()
111
121
Original file line number Diff line number Diff line change 18
18
19
19
local enable_gamebar = PLATFORM ~= " Android"
20
20
local current_game , singleplayer_refresh_gamebar
21
+
21
22
if enable_gamebar then
22
23
function current_game ()
23
24
local last_game_id = core .settings :get (" menu_last_game" )
You can’t perform that action at this time.
0 commit comments