mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 14:24:43 -04:00
Solved notification concurrency exception
This commit is contained in:
parent
81b2eabe92
commit
aca089fa4a
@ -18,7 +18,7 @@ class NotificationsScroll(internal val worldScreen: WorldScreen) : ScrollPane(nu
|
|||||||
|
|
||||||
internal fun update(notifications: MutableList<Notification>) {
|
internal fun update(notifications: MutableList<Notification>) {
|
||||||
notificationsTable.clearChildren()
|
notificationsTable.clearChildren()
|
||||||
for (notification in notifications) {
|
for (notification in notifications.toList()) { // tolist to avoid concurrecy problems
|
||||||
val label = Label(notification.text.tr(), CameraStageBaseScreen.skin).setFontColor(Color.BLACK)
|
val label = Label(notification.text.tr(), CameraStageBaseScreen.skin).setFontColor(Color.BLACK)
|
||||||
.setFontSize(14)
|
.setFontSize(14)
|
||||||
val minitable = Table()
|
val minitable = Table()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user