Skip to content

Commit

Permalink
Disable drag on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Rocky43007 committed Feb 2, 2025
1 parent 07e6620 commit 0a7508c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions apps/desktop/src-tauri/src/drag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ pub async fn start_drag(
image: String,
on_event: Channel<CallbackResult>,
) -> Result<(), String> {
// If on linux, do not run and throw an error saying that it is not supported for now
#[cfg(target_os = "linux")]
let window = window
.gtk_window()
.map_err(|_| "Failed to downcast to ApplicationWindow")?;

{
return Err("Drag and drop is not supported on Linux yet.".to_string());
}
// Check if image string is base64 encoded
let icon_path = if image.starts_with("data:image/") {
image
Expand Down
4 changes: 2 additions & 2 deletions apps/desktop/src/commands.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0a7508c

Please sign in to comment.