fix build

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-07-29 16:09:10 +08:00
parent 19c8ba719a
commit d761d2f00e
3 changed files with 6 additions and 6 deletions

View File

@@ -614,10 +614,10 @@ pub fn main_get_error() -> String {
get_error()
}
pub fn main_show_option(key: String) -> SyncReturn<bool> {
if key.eq(config::CONFIG_OPTION_ALLOW_LINUX_HEADLESS) {
#[cfg(all(target_os = "linux", feature = "linux_headless"))]
#[cfg(not(any(feature = "flatpak", feature = "appimage")))]
pub fn main_show_option(_key: String) -> SyncReturn<bool> {
#[cfg(all(target_os = "linux", feature = "linux_headless"))]
#[cfg(not(any(feature = "flatpak", feature = "appimage")))]
if _key.eq(config::CONFIG_OPTION_ALLOW_LINUX_HEADLESS) {
return SyncReturn(true)
}
SyncReturn(false)