Reorder function calls in prepareModsTab.

Moved the manageModCategory function call to the end within prepareModsTab. This ensures that category management happens after resolving the UI elements, maintaining the logical sequence of operations.
This commit is contained in:
Sandro642 2024-10-26 17:46:24 +02:00
parent 0893cf5a5e
commit f0321e1f6d

View File

@ -1154,10 +1154,10 @@ function animateSettingsTabRefresh(){
* Prepare the Mods tab for display. * Prepare the Mods tab for display.
*/ */
async function prepareModsTab(first){ async function prepareModsTab(first){
manageModCategory()
await resolveModsForUI() await resolveModsForUI()
await resolveDropinModsForUI() await resolveDropinModsForUI()
await resolveShaderpacksForUI() await resolveShaderpacksForUI()
manageModCategory()
bindDropinModsRemoveButton() bindDropinModsRemoveButton()
bindDropinModFileSystemButton() bindDropinModFileSystemButton()
bindShaderpackButton() bindShaderpackButton()