2
0
mirror of https://github.com/xvxx/phetch synced 2024-11-05 00:00:58 +00:00

almost everything is a link

This commit is contained in:
chris west 2020-01-15 19:31:55 -08:00
parent 52f1e88ec2
commit a3644a672f

View File

@ -48,11 +48,7 @@ impl Type {
/// Is this a link, ie something we can navigate to or open?
pub fn is_link(self) -> bool {
match self {
Type::Menu | Type::Search | Type::Telnet | Type::HTML => true,
e if e.is_download() => true,
_ => false,
}
!self.is_info()
}
/// Is this something we can download?