mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-21 19:08:42 +08:00
fix: clipboard doesn't work and set_shadow method is not supported in Linux (#1030)
This commit is contained in:
1 parent
ae6530585a
commit
b8599a0642
2 files changed
+3
-2
No files matched your search
@@ -193,11 +193,11 @@ pub fn create_window(app_handle: &AppHandle) {
|
||||
}
|
||||
Ok(center)
|
||||
})();
|
||||
|
||||
if center.unwrap_or(true) {
|
||||
trace_err!(win.center(), "set win center");
|
||||
}
|
||||
|
||||
#[cfg(not(target_os = "linux"))]
|
||||
trace_err!(set_shadow(&win, true), "set win shadow");
|
||||
if is_maximized {
|
||||
trace_err!(win.maximize(), "set win maximize");
|
||||
|
||||
Reference in new issue
Block a user