mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
implement public api actions for download feature
This commit is contained in:
parent
6f1761dcd7
commit
054afd270a
8 changed files with 230 additions and 53 deletions
|
|
@ -12,7 +12,7 @@ use gtk::{
|
|||
gio::{Cancellable, File},
|
||||
glib::Uri,
|
||||
prelude::{BoxExt, IsA, WidgetExt},
|
||||
Box, Label, Orientation,
|
||||
Box, Orientation,
|
||||
};
|
||||
use std::{rc::Rc, time::Duration};
|
||||
|
||||
|
|
@ -53,7 +53,7 @@ impl Content {
|
|||
&self,
|
||||
initial_filename: &str,
|
||||
cancellable: &Cancellable,
|
||||
on_choose: impl Fn(File, Label) + 'static,
|
||||
on_choose: impl Fn(File, Rc<status::download::Action>) + 'static,
|
||||
) -> Status {
|
||||
self.clean();
|
||||
let status = Status::new_download(initial_filename, cancellable, on_choose);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue