feat: ui scaling, update all
This commit is contained in:
@ -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> {
|
||||
|
Reference in New Issue
Block a user