feat: add lightweight mode (#1739)

This commit is contained in:
ruokeqx
2026-03-29 18:35:23 +08:00
committed by GitHub
parent 210bff96c2
commit b1c7fe5563
5 changed files with 180 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#[tauri::command]
pub fn enter_lightweight_mode(app: tauri::AppHandle) -> Result<(), String> {
crate::lightweight::enter_lightweight_mode(&app)
}
#[tauri::command]
pub fn exit_lightweight_mode(app: tauri::AppHandle) -> Result<(), String> {
crate::lightweight::exit_lightweight_mode(&app)
}
#[tauri::command]
pub fn is_lightweight_mode() -> bool {
crate::lightweight::is_lightweight_mode()
}
+2
View File
@@ -25,6 +25,7 @@ mod sync_support;
mod usage;
mod webdav_sync;
mod workspace;
mod lightweight;
pub use auth::*;
pub use config::*;
@@ -50,3 +51,4 @@ pub use stream_check::*;
pub use usage::*;
pub use webdav_sync::*;
pub use workspace::*;
pub use lightweight::*;