Remove canceled DLCs from table (#3349)

This commit is contained in:
benthecarman 2021-06-29 13:30:32 -05:00 committed by GitHub
parent 53cafa7898
commit 81fe7d76ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,6 +81,8 @@ class DLCPaneModel(pane: DLCPane)(implicit ec: ExecutionContext)
def updateDLCs(): Unit = {
getDLCs.map { dlcs =>
dlcs.foreach(updateDLCInList)
val toRemove = GlobalDLCData.dlcs.diff(dlcs)
GlobalDLCData.dlcs --= toRemove
pane.sortTable()
}