mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
filter FS entities from subject filename, rename new constructor to build
This commit is contained in:
parent
bb4ddbdddd
commit
2f84c2b86e
4 changed files with 14 additions and 12 deletions
|
|
@ -56,7 +56,7 @@ impl Content {
|
|||
on_choose: impl Fn(File, Rc<status::download::Action>) + 'static,
|
||||
) -> StatusPage {
|
||||
self.clean();
|
||||
let status = status::download::new(initial_filename, cancellable, on_choose);
|
||||
let status = status::download::build(initial_filename, cancellable, on_choose);
|
||||
self.g_box.append(&status);
|
||||
status
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ const TITLE: &str = "Download";
|
|||
/// preset with children widget contain download UI
|
||||
/// * apply callback function on destination [File](https://docs.gtk.org/gio/iface.File.html) selected
|
||||
/// * require external IOStream read/write implementation (depending of protocol)
|
||||
pub fn new(
|
||||
pub fn build(
|
||||
initial_filename: &str,
|
||||
cancellable: &Cancellable,
|
||||
on_choose: impl Fn(File, Rc<Action>) + 'static,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue