chore: cargo fmt
This commit is contained in:
parent
990e2e291b
commit
cb288070af
3 changed files with 12 additions and 3 deletions
|
|
@ -522,7 +522,10 @@ impl<Message: 'static> Widget<Message, crate::Theme, crate::Renderer>
|
|||
);
|
||||
|
||||
#[cfg(feature = "xdg-portal")]
|
||||
if mime_type == FILE_TRANSFER_MIME && let Some(f) = self.on_file_transfer.as_ref() && let Ok(s) = String::from_utf8(data[..data.len() - 1].to_vec()) {
|
||||
if mime_type == FILE_TRANSFER_MIME
|
||||
&& let Some(f) = self.on_file_transfer.as_ref()
|
||||
&& let Ok(s) = String::from_utf8(data[..data.len() - 1].to_vec())
|
||||
{
|
||||
shell.publish(f(s));
|
||||
return event::Status::Captured;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue