mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-27 08:14:33 +08:00
15 lines
405 B
Rust
15 lines
405 B
Rust
#[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()
|
|
}
|