mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 10:30:13 +08:00
Graphical singe main thread for log
This commit is contained in:
parent
4d304ba1ac
commit
12cc30e94d
@ -49,14 +49,16 @@ class MiraiGraphicalUIController : Controller(), MiraiConsoleUI {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
when (identity) {
|
Platform.runLater {
|
||||||
0L -> mainLog.apply {
|
when (identity) {
|
||||||
add("$identityStr $message")
|
0L -> mainLog.apply {
|
||||||
mainLog.trim()
|
add("$identityStr $message")
|
||||||
}
|
trim()
|
||||||
else -> cache[identity]?.logHistory?.apply {
|
}
|
||||||
add("$identityStr $message")
|
else -> cache[identity]?.logHistory?.apply {
|
||||||
trim()
|
add("$identityStr $message")
|
||||||
|
trim()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user