mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 08:35:28 +00:00
show the download dialog for the unsupported content types
This commit is contained in:
parent
805c5c5263
commit
9198f2a4f5
1 changed files with 10 additions and 1 deletions
|
|
@ -210,7 +210,12 @@ fn render(
|
|||
}
|
||||
Err(e) => failure(&p, &e.to_string()),
|
||||
})
|
||||
} else {
|
||||
} else if q.ends_with(".txt")
|
||||
|| q.ends_with(".gmi")
|
||||
|| q.ends_with(".gemini")
|
||||
|| q.ends_with("/")
|
||||
|| !u.path().contains(".")
|
||||
{
|
||||
p.window_action.find.simple_action.set_enabled(true);
|
||||
match *f {
|
||||
Feature::Default | Feature::Source => {
|
||||
|
|
@ -240,6 +245,10 @@ fn render(
|
|||
}
|
||||
Feature::Download => panic!(), // unexpected
|
||||
}
|
||||
} else {
|
||||
p.content
|
||||
.to_status_mime(&u.path(), Some((&p.item_action, &u)));
|
||||
p.set_progress(0.0)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue