Merge pull request #6031 from 21pages/wallpaper_remove_unsupported

not show remove wallpaper option if unsupported
This commit is contained in:
RustDesk
2023-10-14 22:22:37 +08:00
committed by GitHub
8 changed files with 68 additions and 20 deletions

View File

@@ -1256,3 +1256,10 @@ pub fn handle_relay_id(id: String) -> String {
id
}
}
pub fn support_remove_wallpaper() -> bool {
#[cfg(any(target_os = "windows", target_os = "linux"))]
return crate::platform::WallPaperRemover::support();
#[cfg(not(any(target_os = "windows", target_os = "linux")))]
return false;
}