Compare commits

...

2 commits

Author SHA1 Message Date
uku
6f8070cbcd
chore: remove debug print 2025-05-19 22:06:32 +02:00
uku
7742bc9361
fix: use my own tokio 2025-05-19 22:06:13 +02:00
5 changed files with 9 additions and 9 deletions

1
Cargo.lock generated
View file

@ -2406,6 +2406,7 @@ dependencies = [
"rfd",
"serde",
"serde_json",
"tokio",
"tokio-util",
"toml",
"tracing",

View file

@ -13,6 +13,7 @@ reqwest = { version = "0.12.15", default-features = false, features = ["http2",
rfd = { version = "0.15.3", default-features = false, features = ["tokio", "xdg-portal"] }
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.140"
tokio = { version = "1.45.0", features = ["fs", "io-util", "process"] }
tokio-util = { version = "0.7.15", features = ["io"] }
toml = "0.8.22"
tracing = "0.1.41"

View file

@ -5,13 +5,11 @@ use std::{
use color_eyre::eyre::{ContextCompat, Result, bail};
use futures::channel::oneshot;
use relm4::{
Sender,
tokio::{
self,
io::{AsyncBufReadExt, BufReader},
process::Command,
},
use relm4::Sender;
use tokio::{
self,
io::{AsyncBufReadExt, BufReader},
process::Command,
};
use crate::ProgressMessage;

View file

@ -180,7 +180,6 @@ impl AsyncComponent for Tyrolienne {
set_title: "Output video codec",
set_model: Some(&gtk::StringList::new(&["VP9", "AV1"])),
connect_selected_item_notify[sender] => move |r| {
println!("{:?}", r.selected_item());
if let Some(item) = r
.selected_item()
.and_then(|i| i.downcast::<gtk::StringObject>().ok())

View file

@ -2,12 +2,13 @@ use std::{path::Path, sync::LazyLock};
use color_eyre::eyre::{Result, bail};
use futures::StreamExt;
use relm4::{Sender, tokio::fs::File};
use relm4::Sender;
use reqwest::{
Body, Client, StatusCode,
header::AUTHORIZATION,
multipart::{Form, Part},
};
use tokio::fs::File;
use tokio_util::io::ReaderStream;
use crate::{Config, ProgressMessage};