From ee3750121ce16f57f0063eced87dce4d9995feca Mon Sep 17 00:00:00 2001 From: fufesou Date: Thu, 26 Oct 2023 17:03:54 +0800 Subject: [PATCH] fix comments Signed-off-by: fufesou --- flutter/lib/desktop/pages/remote_page.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flutter/lib/desktop/pages/remote_page.dart b/flutter/lib/desktop/pages/remote_page.dart index 6d0ba09cd..ffc29b02f 100644 --- a/flutter/lib/desktop/pages/remote_page.dart +++ b/flutter/lib/desktop/pages/remote_page.dart @@ -309,20 +309,20 @@ class _RemotePageState extends State final imageReady = _ffi.ffiModel.pi.isSet.isTrue && _ffi.ffiModel.waitForFirstImage.isFalse; if (imageReady) { - // dismissAll() is ensure the state is clean. + // `dismissAll()` is to ensure that the state is clean. // It's ok to call dismissAll() here. _ffi.dialogManager.dismissAll(); // Recreate the block state to refresh the state. _blockableOverlayState = BlockableOverlayState(); _blockableOverlayState.applyFfi(_ffi); - // Block the whole bodyWidget() when dialog shows. + // Block the whole `bodyWidget()` when dialog shows. return BlockableOverlay( underlying: bodyWidget(), state: _blockableOverlayState, ); } else { - // _blockableOverlayState is not recreated here. - // The block state for the toolbar will not work on reconnecting, but it's ok. + // `_blockableOverlayState` is not recreated here. + // The toolbar's block state won't work properly when reconnecting, but that's okay. return bodyWidget(); } }),