Fix. Custom resolution removed after 2rd conn (#7571)

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2024-04-01 13:27:52 +08:00 committed by GitHub
parent 80747fc306
commit 9e7137ce09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1228,7 +1228,7 @@ impl<T: InvokeUiSession> Session<T> {
#[inline]
fn try_change_init_resolution(&self, display: i32) {
if let Some((w, h)) = self.lc.read().unwrap().get_custom_resolution(display) {
self.do_change_resolution(w, h);
self.change_resolution(display, w, h);
}
}