mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-16 13:05:47 +00:00
Merge pull request #6031 from 21pages/wallpaper_remove_unsupported
not show remove wallpaper option if unsupported
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user