Skip to content

Commit a4aa686

Browse files
authored
Fix race condition in the EPUB navigator (#544)
1 parent 50c2a5b commit a4aa686

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ All notable changes to this project will be documented in this file. Take a look
2222

2323
* Fixed a regression that caused some LCP passphrases to no longer match the protected publication.
2424

25+
#### Navigator
26+
27+
* Fixed race condition when calling `submitPreferences()` before the EPUB navigator is fully initialized.
28+
2529

2630
## [3.0.0-beta.2]
2731

Sources/Navigator/EPUB/EPUBNavigatorViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ open class EPUBNavigatorViewController: UIViewController,
849849
/// Applies user settings that require native configuration instead of
850850
/// CSS properties.
851851
private func applySettings() {
852-
guard isViewLoaded else {
852+
guard state != .initializing, isViewLoaded else {
853853
return
854854
}
855855

0 commit comments

Comments
 (0)