feat: wire model download UI and native docs

This commit is contained in:
Evandro committed 2026-06-11 01:18:40 -03:00
1 parent 0c39063150
commit 8f754b3f00
8 files changed
+218 -152

No files matched your search

+10 -6
View File
@@ -118,7 +118,7 @@ impl TextInjector for FallbackInjector {
fn current_display_server() -> DisplayServer {
#[cfg(target_os = "windows")]
{
return DisplayServer::Windows;
DisplayServer::Windows
}
#[cfg(target_os = "linux")]
@@ -127,14 +127,18 @@ fn current_display_server() -> DisplayServer {
.unwrap_or_default()
.to_lowercase();
if session_type == "wayland" || std::env::var_os("WAYLAND_DISPLAY").is_some() {
return DisplayServer::Wayland;
}
if session_type == "x11" || std::env::var_os("DISPLAY").is_some() {
return DisplayServer::X11;
DisplayServer::Wayland
} else if session_type == "x11" || std::env::var_os("DISPLAY").is_some() {
DisplayServer::X11
} else {
DisplayServer::Unknown
}
}
DisplayServer::Unknown
#[cfg(not(any(target_os = "windows", target_os = "linux")))]
{
DisplayServer::Unknown
}
}
fn copy_to_clipboard(text: &str) -> Result<String, String> {