mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-25 06:01:00 +03:00
show wallpaper only when support, show test on checked
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -2392,6 +2392,10 @@ impl WallPaperRemover {
|
||||
Ok(Self { old_path })
|
||||
}
|
||||
|
||||
pub fn support() -> bool {
|
||||
wallpaper::get().is_ok() || !Self::get_recent_wallpaper().unwrap_or_default().is_empty()
|
||||
}
|
||||
|
||||
fn get_recent_wallpaper() -> ResultType<String> {
|
||||
// SystemParametersInfoW may return %appdata%\Microsoft\Windows\Themes\TranscodedWallpaper, not real path and may not real cache
|
||||
// https://www.makeuseof.com/find-desktop-wallpapers-file-location-windows-11/
|
||||
|
||||
Reference in New Issue
Block a user