Fix. Custom resolution removed after 2rd conn (#7571)
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
80747fc306
commit
9e7137ce09
@ -1228,7 +1228,7 @@ impl<T: InvokeUiSession> Session<T> {
|
|||||||
#[inline]
|
#[inline]
|
||||||
fn try_change_init_resolution(&self, display: i32) {
|
fn try_change_init_resolution(&self, display: i32) {
|
||||||
if let Some((w, h)) = self.lc.read().unwrap().get_custom_resolution(display) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user