mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
delegate history_snap action to protocol driver implementation
This commit is contained in:
parent
68b3119bb1
commit
33d5d414ac
16 changed files with 124 additions and 147 deletions
|
|
@ -20,18 +20,16 @@ impl Directory {
|
|||
{
|
||||
let page = page.clone();
|
||||
move |file| {
|
||||
page.item_action.load.activate(
|
||||
Some(&format!(
|
||||
"file://{}",
|
||||
file.path().unwrap().to_str().unwrap()
|
||||
)),
|
||||
true,
|
||||
)
|
||||
page.item_action.load.activate(Some(&format!(
|
||||
"file://{}",
|
||||
file.path().unwrap().to_str().unwrap()
|
||||
)))
|
||||
}
|
||||
},
|
||||
),
|
||||
);
|
||||
page.set_title(&self.file.parse_name());
|
||||
page.snap_history();
|
||||
page.window_action.find.simple_action.set_enabled(false);
|
||||
page.window_action.save_as.simple_action.set_enabled(false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ impl Image {
|
|||
};
|
||||
page.set_title(&crate::tool::uri_to_title(uri));
|
||||
page.set_progress(0.0);
|
||||
page.snap_history();
|
||||
page.window_action.find.simple_action.set_enabled(false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ impl Status {
|
|||
widget.set_description(Some(message));
|
||||
page.set_title(&widget.title());
|
||||
page.set_progress(0.0);
|
||||
page.snap_history();
|
||||
page.window_action.find.simple_action.set_enabled(false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ impl Text {
|
|||
None => crate::tool::uri_to_title(uri),
|
||||
});
|
||||
page.set_progress(0.0);
|
||||
page.snap_history();
|
||||
page.window_action.find.simple_action.set_enabled(true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue