mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
rename action
This commit is contained in:
parent
ae2bb93ea7
commit
7587e02aff
5 changed files with 14 additions and 14 deletions
|
|
@ -21,7 +21,7 @@ pub struct Reader {
|
|||
|
||||
impl Reader {
|
||||
// Construct
|
||||
pub fn new(gemtext: &str, base: &Uri, action_open: Arc<SimpleAction>) -> Self {
|
||||
pub fn new(gemtext: &str, base: &Uri, action_page_open: Arc<SimpleAction>) -> Self {
|
||||
// Init title
|
||||
let mut title = None;
|
||||
|
||||
|
|
@ -91,7 +91,7 @@ impl Reader {
|
|||
return match uri.scheme().as_str() {
|
||||
"gemini" => {
|
||||
// Open new page
|
||||
action_open.activate(Some(&uri.to_str().to_variant()));
|
||||
action_page_open.activate(Some(&uri.to_str().to_variant()));
|
||||
|
||||
// Prevent link open in external application
|
||||
Propagation::Stop
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue