Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix: deactive widget ancester (#8187)

fufesou89d855d08571
diff --git a/flutter/lib/desktop/pages/remote_page.dart b/flutter/lib/desktop/pages/remote_page.dart
index 7d4773a32..8bd3b0b21 100644
--- a/flutter/lib/desktop/pages/remote_page.dart
+++ b/flutter/lib/desktop/pages/remote_page.dart
@@ -455,9 +455,8 @@ class _RemotePageState extends State<RemotePage>
}, onExit: (evt) {
if (!isWeb) bind.hostStopSystemKeyPropagate(stopped: true);
}, child: LayoutBuilder(builder: (context, constraints) {
- Future.delayed(Duration.zero, () {
- Provider.of<CanvasModel>(context, listen: false).updateViewStyle();
- });
+ final c = Provider.of<CanvasModel>(context, listen: false);
+ Future.delayed(Duration.zero, () => c.updateViewStyle());
final peerDisplay = CurrentDisplayState.find(widget.id);
return Obx(
() => _ffi.ffiModel.pi.isSet.isFalse