Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Fix crash on select segment at index. Swift 4.2 #361

Merged
merged 1 commit into from
Sep 25, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Source/FolioReaderFontsMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class FolioReaderFontsMenu: UIViewController, SMSegmentViewDelegate, UIGestureRe
dayNight.tag = 1
dayNight.addSegmentWithTitle(self.readerConfig.localizedFontMenuDay, onSelectionImage: sunSelected, offSelectionImage: sunNormal)
dayNight.addSegmentWithTitle(self.readerConfig.localizedFontMenuNight, onSelectionImage: moonSelected, offSelectionImage: moonNormal)
dayNight.selectSegmentAtIndex(self.folioReader.nightMode.hashValue)
dayNight.selectSegmentAtIndex(self.folioReader.nightMode ? 1 : 0)
menuView.addSubview(dayNight)


Expand Down