Fix: Lua client config screen overwritten by logs, and fix temp broadcast preview URL

This commit is contained in:
2026-08-01 22:15:59 +08:00
parent 5c78b20163
commit 81f58b58bb
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -223,6 +223,7 @@ function Utils.getAvailableDepartureBeeps()
end
function Utils.promptSlaveIdentity()
State.inConfig = true
while true do
local availBeeps = Utils.getAvailableDepartureBeeps()
local availStr = table.concat(availBeeps, ", ")
@@ -283,6 +284,7 @@ function Utils.promptSlaveIdentity()
term.setBackgroundColor(colors.black)
term.setTextColor(colors.white)
term.clear()
State.inConfig = false
return true
end
term.setCursorPos(1, 12)
@@ -297,6 +299,7 @@ function Utils.promptSlaveIdentity()
end
function Utils.promptConfig()
State.inConfig = true
local manual = Utils.loadStationIdentity()
local currentCode = manual.station_code or State.stationCode or ""
local currentPlatform = manual.station_platform or State.stationPlatform or "1"
@@ -361,6 +364,7 @@ function Utils.promptConfig()
term.setBackgroundColor(colors.black)
term.setTextColor(colors.white)
term.clear()
State.inConfig = false
break
else
term.setCursorPos(1, 12)
@@ -2092,6 +2096,7 @@ function Display.render()
end
function Display.renderTerminal()
if State.inConfig then return end
local w, h = term.getSize()
-- Header