cargo: Drop two dependencies
This commit is contained in:
parent
9ae694c760
commit
4370be282d
5 changed files with 10 additions and 13 deletions
|
|
@ -48,7 +48,6 @@ use std::sync::{Arc, LazyLock};
|
|||
|
||||
use adw::prelude::*;
|
||||
use adw::subclass::prelude::*;
|
||||
use futures_lite::StreamExt;
|
||||
use glib::subclass::Signal;
|
||||
use glib::{Properties, SignalGroup};
|
||||
|
||||
|
|
|
|||
|
|
@ -324,12 +324,12 @@ impl LpImage {
|
|||
// Reset background color for reloads
|
||||
imp.set_background_color(None);
|
||||
|
||||
let (decoder, mut decoder_update) =
|
||||
let (decoder, decoder_update) =
|
||||
Decoder::new(file.clone(), self.metadata().mime_type(), tiles.clone()).await;
|
||||
|
||||
let weak_obj = self.downgrade();
|
||||
glib::spawn_future_local(async move {
|
||||
while let Some(update) = decoder_update.next().await {
|
||||
while let Ok(update) = decoder_update.recv().await {
|
||||
if let Some(obj) = weak_obj.upgrade() {
|
||||
obj.imp().update(update);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue