Fix HUD window controls

This commit is contained in:
lenn
2026-05-26 14:33:51 +08:00
parent 39840f469f
commit 0812142359
3 changed files with 6 additions and 10 deletions

View File

@@ -35,6 +35,6 @@ pub async fn win_close(
.await
.map_err(|error| error.to_string())?;
app.exit(0);
Ok(())
main_window(&app)?.close().map_err(|error| error.to_string())
}

View File

@@ -4,6 +4,8 @@
ConnectionState,
HudConfigLink,
HudNoticeTone,
LocaleCode,
StageViewMode,
WindowControlAction
} from "$lib/types/hud";

View File

@@ -68,6 +68,7 @@
rangeMaxLabel: "最大值",
colorMapLabel: "映射颜色",
matrixViewLabel: "矩阵模式",
matrixViewNumericLabel: "数字模式",
matrixViewDotsLabel: "点矩阵",
stageModeLabel: "渲染模式",
stageModeWebglLabel: "WebGL",
@@ -129,6 +130,7 @@
rangeMaxLabel: "Max",
colorMapLabel: "Color Map",
matrixViewLabel: "Matrix Mode",
matrixViewNumericLabel: "Numeric",
matrixViewDotsLabel: "Dots",
stageModeLabel: "Render Mode",
stageModeWebglLabel: "WebGL",
@@ -1090,12 +1092,10 @@
currentLocale === "zh-CN"
? {
streamOn: "打开",
streamOff: "关闭",
settings: "参数"
}
: {
streamOn: "Open",
streamOff: "Close",
settings: "Setup"
};
const devkitLabel = currentLocale === "zh-CN" ? "开发工具" : "DevKit";
@@ -1107,12 +1107,6 @@
tone: "lime",
active: activeId === "stream-on"
},
{
id: "stream-off",
label: labels.streamOff,
tone: "orange",
active: activeId === "stream-off"
},
{
id: "settings",
label: labels.settings,