Merge pull request #5303 from 21pages/fix

remove extra dismiss waiting for image
This commit is contained in:
RustDesk 2023-08-09 16:07:37 +08:00 committed by GitHub
commit 47956871e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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');
}