mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-15 03:53:16 +08:00
🚨 修复编译异常
This commit is contained in:
@@ -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;
|
||||
// 忽略未使用
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user