refactor: streamline config handling and logging mechanisms

This commit is contained in:
Tunglies
2025-11-15 02:46:34 +08:00
parent f6f288f02b
commit 2b0ba4dc95
6 changed files with 17 additions and 108 deletions

View File

@@ -1,12 +1,11 @@
use crate::{
config::Config,
core::{handle, timer::Timer, tray::Tray},
log_err, logging,
logging,
process::AsyncHandler,
utils::logging::Type,
};
#[cfg(target_os = "macos")]
use crate::logging_error;
use crate::utils::window_manager::WindowManager;
@@ -184,7 +183,7 @@ fn cancel_window_close_listener() {
fn setup_webview_focus_listener() {
if let Some(window) = handle::Handle::get_window() {
let handler_id = window.listen("tauri://focus", move |_event| {
log_err!(cancel_light_weight_timer());
logging_error!(Type::Lightweight, cancel_light_weight_timer());
logging!(
debug,
Type::Lightweight,