Skip to content

Commit 885f81e

Browse files
committed
[iOS] Fixed NOW alert not closing
1 parent dc0e426 commit 885f81e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

OpenStack Summit/OpenStack Summit/ScheduleViewController.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,11 @@ class ScheduleViewController: UIViewController, EventViewController, MessageEnab
138138

139139
self.nowSelected = false
140140

141-
guard let _ = nowEventIndex()
142-
else { showInfoMessage("", message: "All presentations are finished for today."); return }
141+
// only show alert when now button is tapped
142+
if nowEventIndex() == nil && sender == self.scheduleView.nowButton {
143+
144+
showInfoMessage("", message: "All presentations are finished for today."); return
145+
}
143146
}
144147

145148
@IBAction func showEventContextMenu(sender: UIButton) {

0 commit comments

Comments
 (0)