From 29b27c070b2b4e906dae7c2a7ffdcb591a7e835c Mon Sep 17 00:00:00 2001 From: "jiahua.liu" Date: Sun, 5 Apr 2020 22:39:55 +0800 Subject: [PATCH] update variable properties --- .../graphical/controller/MiraiGraphicalUIController.kt | 4 ++-- .../kotlin/net/mamoe/mirai/console/wrapper/CoreUpdater.kt | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/mirai-console-graphical/src/main/kotlin/net/mamoe/mirai/console/graphical/controller/MiraiGraphicalUIController.kt b/mirai-console-graphical/src/main/kotlin/net/mamoe/mirai/console/graphical/controller/MiraiGraphicalUIController.kt index 5b493625e..0aaa4501a 100644 --- a/mirai-console-graphical/src/main/kotlin/net/mamoe/mirai/console/graphical/controller/MiraiGraphicalUIController.kt +++ b/mirai-console-graphical/src/main/kotlin/net/mamoe/mirai/console/graphical/controller/MiraiGraphicalUIController.kt @@ -33,9 +33,9 @@ class MiraiGraphicalUIController : Controller(), MiraiConsoleUI { val botList = observableListOf() val pluginList: ObservableList by lazy(::getPluginsFromConsole) - val consoleInfo = ConsoleInfo() + private val consoleInfo = ConsoleInfo() - val sdf by lazy { + private val sdf by lazy { SimpleDateFormat("HH:mm:ss") } diff --git a/mirai-console-wrapper/src/main/kotlin/net/mamoe/mirai/console/wrapper/CoreUpdater.kt b/mirai-console-wrapper/src/main/kotlin/net/mamoe/mirai/console/wrapper/CoreUpdater.kt index f604d1f05..1672234c2 100644 --- a/mirai-console-wrapper/src/main/kotlin/net/mamoe/mirai/console/wrapper/CoreUpdater.kt +++ b/mirai-console-wrapper/src/main/kotlin/net/mamoe/mirai/console/wrapper/CoreUpdater.kt @@ -111,7 +111,6 @@ internal object CoreUpdater { } } */ - }