diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-02-06 10:39:36 +0700 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-02-06 10:39:36 +0700 |
commit | 6ef0b0b64522ae45bf3747b26bd6dc5f58358f82 (patch) | |
tree | 267709bb401f10f414534552a39a7697614aa4f9 /src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt | |
parent | 1307b6c8f8f7a4aa4d1fd9781cddb5edd0c9f349 (diff) | |
download | Chatting-6ef0b0b64522ae45bf3747b26bd6dc5f58358f82.tar.gz Chatting-6ef0b0b64522ae45bf3747b26bd6dc5f58358f82.tar.bz2 Chatting-6ef0b0b64522ae45bf3747b26bd6dc5f58358f82.zip |
1.3.0
Diffstat (limited to 'src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt')
-rw-r--r-- | src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt b/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt index 1c70b49..ec27a4e 100644 --- a/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt +++ b/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt @@ -5,8 +5,6 @@ import cc.woverflow.chatting.chat.ChatShortcuts import cc.woverflow.chatting.chat.ChatTab import cc.woverflow.chatting.chat.ChatTabs import cc.woverflow.chatting.gui.ChatShortcutViewGui -import cc.woverflow.chatting.updater.DownloadGui -import cc.woverflow.chatting.updater.Updater import gg.essential.api.EssentialAPI import gg.essential.vigilance.Vigilant import gg.essential.vigilance.data.Category @@ -167,37 +165,6 @@ object ChattingConfig : Vigilant(File(Chatting.modDir, "${Chatting.ID}.toml"), C EssentialAPI.getGuiUtil().openScreen(ChatShortcutViewGui()) } - @Property( - type = PropertyType.SWITCH, - name = "Show Update Notification", - description = "Show a notification when you start Minecraft informing you of new updates.", - category = "Updater" - ) - var showUpdate = true - - @Property( - type = PropertyType.BUTTON, - name = "Update Now", - description = "Update by clicking the button.", - category = "Updater" - ) - fun update() { - if (Updater.shouldUpdate) EssentialAPI.getGuiUtil() - .openScreen(DownloadGui()) else EssentialAPI.getNotifications() - .push( - Chatting.NAME, - "No update had been detected at startup, and thus the update GUI has not been shown." - ) - } - - @Property( - type = PropertyType.SWITCH, - name = "First Launch", - category = "General", - hidden = true - ) - var firstLaunch = true - init { initialize() registerListener("chatTabs") { funny: Boolean -> |