🚨 修复macOS编译异常

This commit is contained in:
BTMuli
2026-01-14 00:35:46 +08:00
parent 3380ac265e
commit 5f0ce85fdf
2 changed files with 2 additions and 0 deletions

View File

@@ -90,6 +90,7 @@ pub fn run() {
tray::create_tray(_app.handle())
.expect("Failed to initialize system tray icon. Please check if the tray icon file exists and the system supports tray icons.");
let _window = _app.get_webview_window("TeyvatGuide");
#[cfg(target_os = "windows")]
plugins::text_scale::init(_app.handle().clone());
#[cfg(debug_assertions)]
if _window.is_some() {

View File

@@ -2,4 +2,5 @@
// @since Beta v0.9.1
pub mod custom_log;
#[cfg(target_os = "windows")]
pub mod text_scale;