forked from mirrors/0ad
Fix mod selector "refresh list" button.
Object.Keys() on GUI object doesn't work following 7c04ea0211.
Reported by: Stan
Fixes #5931
Differential Revision: https://code.wildfiregames.com/D3399
This was SVN commit r24681.
This commit is contained in:
@@ -190,8 +190,12 @@ function clearModList()
|
||||
{
|
||||
let modsAvailableList = Engine.GetGUIObjectByName("modsAvailableList");
|
||||
modsAvailableList.selected = -1;
|
||||
for (let listIdx of Object.keys(modsAvailableList).filter(key => key.startsWith("list")))
|
||||
modsAvailableList[listIdx] = [];
|
||||
modsAvailableList.list_name = [];
|
||||
modsAvailableList.list_name_id = [];
|
||||
modsAvailableList.list_version = [];
|
||||
modsAvailableList.list_filesize = [];
|
||||
modsAvailableList.list_dependencies = [];
|
||||
modsAvailableList.list = [];
|
||||
}
|
||||
|
||||
function selectedModIndex()
|
||||
|
||||
Reference in New Issue
Block a user