Rename path to url

This commit is contained in:
sxyazi 2024-02-28 11:53:55 +08:00
parent 7d7c8eeedb
commit 3d385bc184
No known key found for this signature in database

View file

@ -58,9 +58,9 @@ impl Tasks {
pub fn file_open(&self, hovered: &Url, targets: &[(Url, String)]) {
let mut openers = BTreeMap::new();
for (path, mime) in targets {
if let Some(opener) = OPEN.openers(path, mime).and_then(|o| o.first().copied()) {
openers.entry(opener).or_insert_with(|| vec![hovered]).push(path);
for (url, mime) in targets {
if let Some(opener) = OPEN.openers(url, mime).and_then(|o| o.first().copied()) {
openers.entry(opener).or_insert_with(|| vec![hovered]).push(url);
}
}
for (opener, args) in openers {