MCPcopy Create free account
hub / github.com/FSGModding/FSG_Mod_Assistant / updateMods

Method updateMods

renderer/renderJS/main_ui_lib.js:2301–2319  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2299 }
2300
2301 updateMods() {
2302 const isDelete = this.flags.operation === 'delete'
2303 const isMulti = this.lastPayload.multiDestination
2304 const hasDest = this.selectedDest.size !== 0
2305
2306 const modList = MA.byId('fileOpCanvas-source')
2307
2308 modList.innerHTML = ''
2309 if ( this.flags.operation !== 'import' ) {
2310 for ( const mod of this.lastPayload.records ) {
2311 modList.appendChild(this.showMod(mod, hasDest, isDelete, isMulti))
2312 }
2313 } else {
2314 for ( const mod of this.lastPayload.rawFileList ) {
2315 modList.appendChild(this.showMod(mod, hasDest, isDelete, isMulti))
2316 }
2317 }
2318 this.updateButton()
2319 }
2320
2321 // MARK: prepare display
2322 display(mode, mods) {

Callers 4

selectDestinationMethod · 0.95
toggleModMethod · 0.95
displayMethod · 0.95
keyMethod · 0.95

Calls 2

showModMethod · 0.95
updateButtonMethod · 0.95

Tested by

no test coverage detected