mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
feat: support for Android platform in the for qualifier of opener (#2041)
This commit is contained in:
parent
196a46cc5e
commit
c1048debc5
1 changed files with 3 additions and 5 deletions
|
|
@ -13,11 +13,9 @@ pub struct Opener {
|
|||
impl Opener {
|
||||
pub fn take(mut self) -> Option<Self> {
|
||||
if let Some(for_) = self.for_.take() {
|
||||
match for_.as_bytes() {
|
||||
b"unix" if cfg!(unix) => {}
|
||||
b"windows" if cfg!(windows) => {}
|
||||
b"linux" if cfg!(target_os = "linux") => {}
|
||||
b"macos" if cfg!(target_os = "macos") => {}
|
||||
match for_.as_str() {
|
||||
"unix" if cfg!(unix) => {}
|
||||
os if os == std::env::consts::OS => {}
|
||||
_ => return None,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue