delay 3s to adjust window after changing resolution
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
f5edf44f0f
commit
69f16ccd9f
@ -1351,6 +1351,14 @@ class _DisplayMenuState extends State<_DisplayMenu> {
|
||||
if (w != null && h != null) {
|
||||
await bind.sessionChangeResolution(
|
||||
id: widget.id, width: w, height: h);
|
||||
Future.delayed(Duration(seconds: 3), () async {
|
||||
final display = widget.ffi.ffiModel.display;
|
||||
if (w == display.width && h == display.height) {
|
||||
if (_isWindowCanBeAdjusted()) {
|
||||
_doAdjustWindow();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user