fix mismatch of current display index and current display name

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-05-18 22:56:16 +08:00
parent ac96ddaecb
commit c4cefdb54b
2 changed files with 13 additions and 9 deletions

View File

@@ -1043,6 +1043,8 @@ impl Connection {
})
.into();
#[cfg(not(any(target_os = "android", target_os = "ios")))]
video_service::try_reset_current_display();
#[cfg(not(any(target_os = "android", target_os = "ios")))]
{
pi.resolutions = Some(SupportedResolutions {
resolutions: video_service::get_current_display_name()