mirror of
https://gitlab.com/cc-ru/ocelot/ocelot-desktop.git
synced 2025-12-20 02:59:19 +01:00
Fix ChangeSimulationSpeedDialog
This commit is contained in:
parent
313e5c8b6a
commit
b67ad92273
@ -45,7 +45,8 @@ class ChangeSimulationSpeedDialog extends ModalDialog {
|
|||||||
|
|
||||||
override def onInput(text: String): Unit = {
|
override def onInput(text: String): Unit = {
|
||||||
tickInterval = parseInput(text).map { interval =>
|
tickInterval = parseInput(text).map { interval =>
|
||||||
inputTPS.text = formatTPS(interval)
|
val tps = formatTPS(interval)
|
||||||
|
if (inputTPS.text != tps) inputTPS.text = tps
|
||||||
interval
|
interval
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -66,7 +67,8 @@ class ChangeSimulationSpeedDialog extends ModalDialog {
|
|||||||
|
|
||||||
override def onInput(text: String): Unit = {
|
override def onInput(text: String): Unit = {
|
||||||
tickInterval = parseInput(text).map { interval =>
|
tickInterval = parseInput(text).map { interval =>
|
||||||
inputMSPT.text = formatMSPT(interval)
|
val mspt = formatMSPT(interval)
|
||||||
|
if (inputMSPT.text != mspt) inputMSPT.text = mspt
|
||||||
interval
|
interval
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user