Only update DLC we are viewing (#3211)

This commit is contained in:
benthecarman 2021-05-31 15:45:00 -07:00 committed by GitHub
parent deb0862e07
commit 549d840d02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,7 +174,7 @@ class DLCPaneModel(resultArea: TextArea) extends Logging {
}
def viewDLC(status: DLCStatus): Unit = {
updateDLCs()
updateDLC(status.dlcId)
val updatedStatus = dlcs.find(_.tempContractId == status.tempContractId)
ViewDLCDialog.showAndWait(parentWindow.value,
updatedStatus.getOrElse(status),