Fix window clicking on Linux

This commit is contained in:
Gregory Schier committed 2024-05-14 12:19:19 -07:00
1 parent 1f88b7a41a
commit 2c70b8bb0f
2 files changed
+6794

No files matched your search

File diff suppressed because it is too large. Load diff
+3
View File
@@ -1721,6 +1721,9 @@ fn is_dev() -> bool {
fn create_window(handle: &AppHandle, url: Option<&str>) -> WebviewWindow {
let menu = app_menu(handle).unwrap();
// This causes the window to not be clickable (in AppImage), so disable on Linux
#[cfg(not(target_os = "linux"))]
handle.set_menu(menu).expect("Failed to set app menu");
let window_num = handle.webview_windows().len();