change comment
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
parent
676b02c8de
commit
738a1a330c
@ -622,7 +622,7 @@ class WindowActionPanelState extends State<WindowActionPanel>
|
|||||||
// it's safe to hide the subwindow
|
// it's safe to hide the subwindow
|
||||||
final controller = WindowController.fromWindowId(kWindowId!);
|
final controller = WindowController.fromWindowId(kWindowId!);
|
||||||
if (Platform.isMacOS) {
|
if (Platform.isMacOS) {
|
||||||
// onWindowClose() maybe called multiple times as loopCloseWindow() in remote_tab_page.dart.
|
// onWindowClose() maybe called multiple times because of loopCloseWindow() in remote_tab_page.dart.
|
||||||
// use ??= to make sure the value is set on first call.
|
// use ??= to make sure the value is set on first call.
|
||||||
|
|
||||||
if (await widget.onClose?.call() ?? true) {
|
if (await widget.onClose?.call() ?? true) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user