mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
fix progress handle
This commit is contained in:
parent
1c6e676557
commit
697cbceb6d
1 changed files with 2 additions and 4 deletions
|
|
@ -7,15 +7,14 @@ pub struct Directory {
|
|||
|
||||
impl Directory {
|
||||
pub fn handle(&self, page: &Rc<super::Page>) {
|
||||
page.set_progress(1.0);
|
||||
page.content.to_directory(
|
||||
&self.file,
|
||||
(
|
||||
// on ready
|
||||
{
|
||||
let page = page.clone();
|
||||
move || {
|
||||
page.set_progress(0.0);
|
||||
}
|
||||
move || page.set_progress(0.0)
|
||||
},
|
||||
// on activate
|
||||
{
|
||||
|
|
@ -33,7 +32,6 @@ impl Directory {
|
|||
),
|
||||
);
|
||||
page.set_title(&self.file.parse_name());
|
||||
|
||||
page.window_action.find.simple_action.set_enabled(false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue