feat: ui scaling, update all

This commit is contained in:
2025-04-04 14:37:16 +00:00
parent 536f289cfe
commit 8c3f9762a4
15 changed files with 429 additions and 176 deletions

View File

@ -355,6 +355,23 @@ pub async fn list_platform_capabilities() -> Result<Vec<String>, ()> {
return Ok(vec!["wine".to_owned()]);
}
#[tauri::command]
pub async fn is_offline(state: State<'_, Mutex<AppData>>) -> Result<bool, ()> {
log::debug!("invoke: is_offline");
let appd = state.lock().await;
Ok(appd.cfg.offline_mode)
}
#[tauri::command]
pub async fn set_offline(state: State<'_, Mutex<AppData>>, value: bool) -> Result<(), String> {
log::debug!("invoke: set_offline({value})");
let mut appd = state.lock().await;
appd.cfg.offline_mode = value;
appd.write().map_err(|e| e.to_string())
}
#[tauri::command]
#[cfg(target_os = "windows")]
pub async fn list_displays() -> Result<Vec<(String, String)>, String> {