mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-04-13 13:30:31 +08:00
fix: app freeze when reopen app on windows
This commit is contained in:
parent
391f6fe0b7
commit
04bdc7c948
@ -41,7 +41,7 @@ mod app_init {
|
||||
#[allow(unused_mut)]
|
||||
let mut builder = builder
|
||||
.plugin(tauri_plugin_single_instance::init(|_app, _args, _cwd| {
|
||||
AsyncHandler::block_on(async move {
|
||||
AsyncHandler::spawn(async || {
|
||||
logging!(info, Type::Window, "检测到从单例模式恢复应用窗口");
|
||||
if !lightweight::exit_lightweight_mode().await {
|
||||
WindowManager::show_main_window().await;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user