Skip to content

Commit

Permalink
fix: Add delay also for print
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeWeidmann committed Feb 5, 2024
1 parent ce19fd3 commit ed864fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MailCore/Cache/Actions/ActionsManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public class ActionsManager: ObservableObject {
case .print:
guard let message = messages.first else { return }
// Needed to be sure that the bottomView is dismissed before we try to show the printPanel
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
DispatchQueue.main.asyncAfter(deadline: UIConstants.modalCloseDelay) {
let nc = NotificationCenter.default
nc.post(name: Notification.Name.printNotification, object: message)
}
Expand Down

0 comments on commit ed864fa

Please sign in to comment.