mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41: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 {
|
impl Opener {
|
||||||
pub fn take(mut self) -> Option<Self> {
|
pub fn take(mut self) -> Option<Self> {
|
||||||
if let Some(for_) = self.for_.take() {
|
if let Some(for_) = self.for_.take() {
|
||||||
match for_.as_bytes() {
|
match for_.as_str() {
|
||||||
b"unix" if cfg!(unix) => {}
|
"unix" if cfg!(unix) => {}
|
||||||
b"windows" if cfg!(windows) => {}
|
os if os == std::env::consts::OS => {}
|
||||||
b"linux" if cfg!(target_os = "linux") => {}
|
|
||||||
b"macos" if cfg!(target_os = "macos") => {}
|
|
||||||
_ => return None,
|
_ => return None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue