Revert "Fix Linux first-launch startup feedback when provisioning bundled rclone"

This reverts commit 3201b0306c.
This commit is contained in:
FTCHD
2026-05-10 21:52:01 +03:00
parent 3201b0306c
commit d749844073
7 changed files with 86 additions and 416 deletions
+3 -10
View File
@@ -213,7 +213,6 @@ pub async fn open_small_window(
app_handle: AppHandle,
name: String,
url: String,
transparent: Option<bool>,
) -> Result<(), String> {
if let Some(existing) = app_handle.get_webview_window(&name) {
existing.set_focus().map_err(|e| e.to_string())?;
@@ -235,16 +234,12 @@ pub async fn open_small_window(
#[cfg(target_os = "linux")]
{
if transparent.unwrap_or(true) {
builder = builder.transparent(true);
}
builder = builder.transparent(true);
}
let window = builder.build().map_err(|e| e.to_string())?;
if let Err(err) = window.center() {
log::warn!("failed to center small window before show: {}", err);
}
window.center().map_err(|e| e.to_string())?;
window.set_zoom(1.0).map_err(|e| e.to_string())?;
#[cfg(target_os = "macos")]
@@ -260,9 +255,7 @@ pub async fn open_small_window(
window.set_always_on_top(true).map_err(|e| e.to_string())?;
#[cfg(target_os = "linux")]
if let Err(err) = window.center() {
log::warn!("failed to center small window after show: {}", err);
}
window.center().map_err(|e| e.to_string())?;
if os != "windows" && os != "macos" {
window.set_resizable(true).map_err(|e| e.to_string())?;
+3 -3
View File
@@ -14,15 +14,15 @@
"windows": [
{
"title": "Rclone UI",
"width": 1,
"height": 1,
"width": 0,
"height": 0,
"center": true,
"hiddenTitle": false,
"resizable": false,
"fullscreen": false,
"visible": false,
"decorations": false,
"focus": false,
"focus": true,
"url": "tray.html",
"alwaysOnTop": true,
"backgroundThrottling": "disabled",