mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-21 04:49:46 +08:00
🧑💻 配置分平台
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user