remove extra dismiss waiting for image

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-08-09 15:32:51 +08:00
parent 52bffd4030
commit de85c9448a

View File

@ -1901,10 +1901,5 @@ Future<void> 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');
}