🧑‍💻 配置分平台

This commit is contained in:
BTMuli
2026-01-16 20:15:16 +08:00
parent e3f3a038f4
commit 87eddb7e87
5 changed files with 82 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ fn window_event_handler(app: &Window, event: &WindowEvent) {
match event {
WindowEvent::CloseRequested { api, .. } => {
api.prevent_close();
if app.label() == "Teyvat.Guide" {
if app.label() == "TeyvatGuide" {
// 主窗口:发送事件让前端根据配置决定是隐藏还是退出
let _ = app.emit("main-window-close-requested", ());
} else {