Skip to content

Commit 719cc9f

Browse files
author
Momo Ozawa
committed
Refactor: add delay to task complete notice
1 parent a907d25 commit 719cc9f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

WordPress/Classes/ViewRelated/Blog/QuickStartTourGuide.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,10 @@ open class QuickStartTourGuide: NSObject {
310310

311311
let noticeStyle = QuickStartNoticeStyle(attributedMessage: taskCompleteDescription, isDismissable: true)
312312
let notice = Notice(title: "", style: noticeStyle, tag: noticeTag)
313-
ActionDispatcher.dispatch(NoticeAction.post(notice))
313+
314+
DispatchQueue.main.asyncAfter(deadline: .now() + Constants.quickStartDelay) {
315+
ActionDispatcher.dispatch(NoticeAction.post(notice))
316+
}
314317
}
315318

316319
private func showNextStep(_ nextStep: TourState) {

0 commit comments

Comments
 (0)