Merge pull request #1742 from pop-os/mtp

Fix unsupported errors when copying large files over MTP
This commit is contained in:
Jeremy Soller 2026-04-16 15:51:33 -06:00 committed by GitHub
commit b895b07bb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 671 additions and 216 deletions

View file

@ -6967,8 +6967,7 @@ impl Application for App {
|_| {
stream::channel(
1,
move |msg_tx: futures::channel::mpsc::Sender<_>| async move {
let msg_tx = Arc::new(tokio::sync::Mutex::new(msg_tx));
move |mut msg_tx: futures::channel::mpsc::Sender<_>| async move {
tokio::task::spawn_blocking(move || {
match notify_rust::Notification::new()
.summary(&fl!("notification-in-progress"))
@ -6978,8 +6977,6 @@ impl Application for App {
Ok(notification) => {
let _ = futures::executor::block_on(async {
msg_tx
.lock()
.await
.send(Message::Notification(Arc::new(
Mutex::new(notification),
)))