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
+1 -9
View File
@@ -5,7 +5,7 @@ use anyhow::Result;
use crate::{
config::Config,
core::{
CoreManager, Timer, handle,
CoreManager, Timer,
hotkey::Hotkey,
logger::Logger,
service::{SERVICE_MANAGER, ServiceManager, is_service_ipc_path_exists},
@@ -39,10 +39,6 @@ pub fn init_work_dir_and_logger() -> anyhow::Result<()> {
})
}
pub fn resolve_setup_handle() {
init_handle();
}
pub fn resolve_setup_sync() {
AsyncHandler::spawn(|| async {
AsyncHandler::spawn_blocking(init_scheme);
@@ -95,10 +91,6 @@ pub async fn resolve_reset_async() -> Result<(), anyhow::Error> {
Ok(())
}
pub fn init_handle() {
handle::Handle::global().init();
}
pub(super) fn init_scheme() {
logging_error!(Type::Setup, init::init_scheme());
}