fix: clipboard doesn't work and set_shadow method is not supported in Linux (#1030)

This commit is contained in:
oomeow
2024-05-18 15:14:00 +08:00
committed by GitHub
parent b25cf5eadb
commit db5d14e0ce
2 changed files with 3 additions and 2 deletions

View File

@@ -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");