mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 14:43:57 +01:00
Fix DLC Table View not being updated (#3315)
* Fix DLC Table View not being updated * Fix DLC Table View not being updated
This commit is contained in:
parent
fafc564da8
commit
b8538f0300
@ -56,8 +56,8 @@ class DLCPaneModel(val resultArea: TextArea)(implicit ec: ExecutionContext)
|
||||
ConsoleCli.exec(GetDLC(dlcId), GlobalData.consoleCliConfig) match {
|
||||
case Failure(exception) => throw exception
|
||||
case Success(dlcStatus) =>
|
||||
dlcs += read[DLCStatus](ujson.read(dlcStatus))
|
||||
dlcs.find(_.dlcId == dlcId).foreach(dlcs -= _)
|
||||
dlcs += read[DLCStatus](ujson.read(dlcStatus))
|
||||
}
|
||||
}
|
||||
|
||||
@ -69,8 +69,8 @@ class DLCPaneModel(val resultArea: TextArea)(implicit ec: ExecutionContext)
|
||||
toAdd <- toAddF
|
||||
toRemove <- toRemoveF
|
||||
} yield {
|
||||
dlcs ++= toAdd
|
||||
dlcs --= toRemove
|
||||
dlcs ++= toAdd
|
||||
()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user