Skip to content

Commit

Permalink
Fix the autoupdater dialog, v0.7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnemotechnician committed Nov 4, 2023
1 parent 2d36bd3 commit 4e89add
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class AutoupdaterPlugin : MinchatPlugin("autoupdater") {

Log.info { "Autoupdater: downloading the changelog..." }
val changelog = runCatching { Minchat.githubClient.getChangelog() }
.onFailure { Log.error { "Autoupdater: failed to get changelog: $it" } }
.getOrNull()
?.filter { it.version > MINCHAT_VERSION }

Expand Down Expand Up @@ -229,11 +230,11 @@ class AutoupdaterPlugin : MinchatPlugin("autoupdater") {
hider(hideVertical = { !showChangelog }, hideHorizontal = { !showChangelog }) {
margin(Style.layoutMargin)

limitedScrollPane(limitW = false, limitH = true) {
limitedScrollPane(limitW = false, limitH = false) {
addChangelog()
}.grow()
}.grow().maxWidth(800f)
}.grow()
}.maxHeight(500f)
}.maxHeight(500f).growX()
}.fillX().pad(Style.layoutPad).row()

addTable(Style.surfaceBackground) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import kotlinx.serialization.Serializable
val MINCHAT_VERSION = BuildVersion(
major = 0,
minor = 7,
patch = 4
patch = 5
)

/**
Expand Down
2 changes: 1 addition & 1 deletion mod.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ There are various tutorials that will guide you through the user interface of th
displayName: "MinChat Official"
author: "Mnemotechnician"
minGameVersion: "137"
version: "v0.7.4-beta"
version: "v0.7.5-beta"

main: "io.minchat.client.MinchatMod"
hidden: true
3 changes: 3 additions & 0 deletions remote/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#VERSION 0.7.5
The autoupdater dialog has finally been fixed

#VERSION 0.7.4
Hotfix for 0.7.3

Expand Down

0 comments on commit 4e89add

Please sign in to comment.