mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
try autocomplete scheme if the request match local filename
This commit is contained in:
parent
9fe6713bc8
commit
be9e55a4cf
3 changed files with 38 additions and 30 deletions
|
|
@ -54,7 +54,7 @@ impl Open {
|
|||
// Actions
|
||||
|
||||
/// Formatted action connector for external implementation
|
||||
pub fn on_activate(&self, callback: impl Fn(Option<i32>, String) + 'static) -> SignalHandlerId {
|
||||
pub fn on_activate(&self, callback: impl Fn(Option<i32>, &str) + 'static) -> SignalHandlerId {
|
||||
use gtk::{prelude::FileExt, FileDialog, Window};
|
||||
use std::rc::Rc;
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ impl Open {
|
|||
} else {
|
||||
Some(state)
|
||||
},
|
||||
format!("file://{}", file.path().unwrap().to_str().unwrap()),
|
||||
file.path().unwrap().to_str().unwrap(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue