File tree 1 file changed +13
-3
lines changed
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -234,19 +234,29 @@ end
234
234
---- ----------------------------------------------------------------------------
235
235
function asyncOnlineFavourites ()
236
236
237
- menudata .favorites = {}
237
+ if not menudata .public_known then
238
+ menudata .public_known = {{
239
+ name = fgettext (" Loading..." ),
240
+ description = fgettext (" Try reenabling public serverlist and check your internet connection." )
241
+ }}
242
+ end
243
+ menudata .favorites = menudata .public_known
238
244
core .handle_async (
239
245
function (param )
240
246
return core .get_favorites (" online" )
241
247
end ,
242
248
nil ,
243
249
function (result )
244
250
if core .setting_getbool (" public_serverlist" ) then
245
- menudata .favorites = order_favorite_list (result )
251
+ local favs = order_favorite_list (result )
252
+ if favs [1 ] then
253
+ menudata .public_known = favs
254
+ menudata .favorites = menudata .public_known
255
+ end
246
256
core .event_handler (" Refresh" )
247
257
end
248
258
end
249
- )
259
+ )
250
260
end
251
261
252
262
---- ----------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments