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:
parent
52f1e88ec2
commit
a3644a672f
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user