Skip to content

Commit 69e0025

Browse files
committed
离开exterior语言设置界面时会清空文本差异消息(如果有)
框架跟进
1 parent d0b0f8b commit 69e0025

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

assets/scene/lang_out.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ local dialMode,transTimer
2424
local mode,instrument,octave_plus
2525

2626
local jaClickCount
27+
local hasMessage
2728

2829
---@type Zenitha.Scene
2930
local scene={}
@@ -151,11 +152,15 @@ function scene.load()
151152
freshTexts()
152153

153154
jaClickCount=0
155+
hasMessage=false
154156
end
155157
function scene.unload()
156158
if changed and SCN.stackChange<0 then
157159
saveSettings()
158160
end
161+
if hasMessage then
162+
MSG.clear()
163+
end
159164
end
160165

161166
function scene.mouseDown(_,_,k) if k==2 then SCN.back('fadeHeader') end end
@@ -257,6 +262,7 @@ local function _setLang(lid)
257262
end
258263
if anyMissing then
259264
MSG.log('warn',"Some i18n strings missing",26)
265+
hasMessage=true
260266
end
261267
else
262268
SETTINGS.system.locale=lid

0 commit comments

Comments
 (0)