filter FS entities from subject filename, rename new constructor to build

This commit is contained in:
yggverse 2025-01-16 22:04:29 +02:00
parent bb4ddbdddd
commit 2f84c2b86e
4 changed files with 14 additions and 12 deletions

View file

@ -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
}

View file

@ -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,