refactor: simplfy backend notify message to frontend (#6323)

This commit is contained in:
Tunglies
2026-02-20 03:18:51 +00:00
committed by GitHub
parent e5dd127bcc
commit 5f573ca2d6
5 changed files with 24 additions and 181 deletions
-4
View File
@@ -250,7 +250,6 @@ pub fn run() {
logging!(error, Type::Setup, "Failed to setup window state: {}", e);
}
resolve::resolve_setup_handle();
resolve::resolve_setup_async();
resolve::resolve_setup_sync();
resolve::init_signal();
@@ -282,7 +281,6 @@ pub fn run() {
}
logging!(info, Type::System, "应用就绪");
handle::Handle::global().init();
#[cfg(target_os = "macos")]
if let Some(window) = _app_handle.get_webview_window("main") {
@@ -292,8 +290,6 @@ pub fn run() {
#[cfg(target_os = "macos")]
pub async fn handle_reopen(has_visible_windows: bool) {
handle::Handle::global().init();
if lightweight::is_in_lightweight_mode() {
lightweight::exit_lightweight_mode().await;
return;