mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 17:15:38 +08:00
fix: resolve Windows build error
This commit is contained in:
@@ -162,7 +162,7 @@ pub fn run() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 异步处理
|
// 异步处理
|
||||||
let app_handle = app.app_handle().clone();
|
let app_handle = app.handle().clone();
|
||||||
AsyncHandler::spawn(move || async move {
|
AsyncHandler::spawn(move || async move {
|
||||||
logging!(info, Type::Setup, true, "异步执行应用设置...");
|
logging!(info, Type::Setup, true, "异步执行应用设置...");
|
||||||
match timeout(
|
match timeout(
|
||||||
@@ -188,10 +188,10 @@ pub fn run() {
|
|||||||
logging!(info, Type::Setup, true, "执行主要设置操作...");
|
logging!(info, Type::Setup, true, "执行主要设置操作...");
|
||||||
|
|
||||||
logging!(info, Type::Setup, true, "初始化AppHandleManager...");
|
logging!(info, Type::Setup, true, "初始化AppHandleManager...");
|
||||||
AppHandleManager::global().init(app.app_handle().clone());
|
AppHandleManager::global().init(app.handle().clone());
|
||||||
|
|
||||||
logging!(info, Type::Setup, true, "初始化核心句柄...");
|
logging!(info, Type::Setup, true, "初始化核心句柄...");
|
||||||
core::handle::Handle::global().init(app.app_handle());
|
core::handle::Handle::global().init(app.handle());
|
||||||
|
|
||||||
logging!(info, Type::Setup, true, "初始化配置...");
|
logging!(info, Type::Setup, true, "初始化配置...");
|
||||||
if let Err(e) = utils::init::init_config() {
|
if let Err(e) = utils::init::init_config() {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#[cfg(target_os = "macos")]
|
|
||||||
use crate::{
|
use crate::{
|
||||||
config::{Config, IVerge, PrfItem},
|
config::{Config, IVerge, PrfItem},
|
||||||
core::*,
|
core::*,
|
||||||
@@ -286,7 +285,6 @@ pub fn create_window(is_show: bool) -> bool {
|
|||||||
.title("Clash Verge")
|
.title("Clash Verge")
|
||||||
.center()
|
.center()
|
||||||
.decorations(true)
|
.decorations(true)
|
||||||
.hidden_title(true)
|
|
||||||
.fullscreen(false)
|
.fullscreen(false)
|
||||||
.inner_size(DEFAULT_WIDTH as f64, DEFAULT_HEIGHT as f64)
|
.inner_size(DEFAULT_WIDTH as f64, DEFAULT_HEIGHT as f64)
|
||||||
.min_inner_size(520.0, 520.0)
|
.min_inner_size(520.0, 520.0)
|
||||||
|
|||||||
Reference in New Issue
Block a user