🚨 修复编译异常

This commit is contained in:
BTMuli
2025-12-29 21:46:31 +08:00
parent cc8723c619
commit ab115726bd
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ pub fn get_window_size2(monitor: Monitor, width: f64, height: f64) -> (f64, f64)
let monitor_scale = monitor.scale_factor();
let width_scale = monitor_width / 1920.0;
let height_scale = monitor_height / 1080.0;
let mut text_scale = utils::read_text_scale_factor().unwrap_or(1.0);
let text_scale = utils::read_text_scale_factor().unwrap_or(1.0);
let mut get_width: f64 = 0.0;
let mut get_height: f64 = 0.0;
// 忽略未使用

View File

@@ -88,8 +88,8 @@ 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(debug_assertions)]
plugins::text_scale::init(_app.handle().clone());
#[cfg(debug_assertions)]
if _window.is_some() {
_window.unwrap().open_devtools();
}