Add Config Version to options page

This commit is contained in:
nelle 2024-02-17 18:25:27 -07:00
parent 2568d651a1
commit 32a47979f5

View file

@ -5,6 +5,7 @@ import jexer.TApplication
import jexer.TEditColorThemeWindow
import jexer.TWindow
import jexer.layout.StretchLayoutManager
import xyz.limepot.kotRemote.Config
class OptionsWindow private constructor(parent: TApplication, flags: Int) :
TWindow(parent, "Options", 0, 0, 36, 19, flags) {
@ -16,7 +17,9 @@ class OptionsWindow private constructor(parent: TApplication, flags: Int) :
height - 2
)
addButton("Change Color Theme", 6, 2,
addLabel("Config Version: " + (Config().configVersion).toString(), 8, 0)
addButton("Change Color Theme", 7, 2,
object : TAction() {
override fun DO() {
TEditColorThemeWindow(application)