Add Config Version to options page
This commit is contained in:
parent
2568d651a1
commit
32a47979f5
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue