From de85c9448aa3659fa0724af123ef4eea8de39d60 Mon Sep 17 00:00:00 2001 From: 21pages Date: Wed, 9 Aug 2023 15:32:51 +0800 Subject: [PATCH] remove extra dismiss waiting for image Signed-off-by: 21pages --- flutter/lib/models/model.dart | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/flutter/lib/models/model.dart b/flutter/lib/models/model.dart index e54bc0d07..9c4ff281c 100644 --- a/flutter/lib/models/model.dart +++ b/flutter/lib/models/model.dart @@ -1901,10 +1901,5 @@ Future initializeCursorAndCanvas(FFI ffi) async { } clearWaitingForImage(OverlayDialogManager? dialogManager, SessionID sessionId) { - final durations = [0, 100, 500, 1000, 2000]; - for (var duration in durations) { - Future.delayed(Duration(milliseconds: duration), () { - dialogManager?.dismissByTag('$sessionId-waiting-for-image'); - }); - } + dialogManager?.dismissByTag('$sessionId-waiting-for-image'); }