mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 00:35:38 +08:00
fix: silent start does not take effect (#3708)
* fix: light mode error * feat: optimize the logic * fix: clippy issues
This commit is contained in:
@@ -263,6 +263,17 @@ pub fn create_window(is_show: bool) -> bool {
|
||||
is_show
|
||||
);
|
||||
|
||||
if !is_show {
|
||||
logging!(
|
||||
info,
|
||||
Type::Window,
|
||||
true,
|
||||
"Not to create window when starting in silent mode"
|
||||
);
|
||||
handle::Handle::notify_startup_completed();
|
||||
return false;
|
||||
}
|
||||
|
||||
if let Some(app_handle) = handle::Handle::global().app_handle() {
|
||||
if let Some(window) = app_handle.get_webview_window("main") {
|
||||
logging!(info, Type::Window, true, "主窗口已存在,将显示现有窗口");
|
||||
|
||||
Reference in New Issue
Block a user