diff --git a/code/Kotoba/SettingsViewController.swift b/code/Kotoba/SettingsViewController.swift index 5ef8ae4..47235d1 100644 --- a/code/Kotoba/SettingsViewController.swift +++ b/code/Kotoba/SettingsViewController.swift @@ -31,6 +31,8 @@ final class SettingsViewController: UIViewController, UIDocumentPickerDelegate, override func viewWillAppear(_ animated: Bool) { + super.viewWillAppear(animated) + _refreshViews() } diff --git a/code/Kotoba/WordListViewController.swift b/code/Kotoba/WordListViewController.swift index ada0f95..50ce8e4 100644 --- a/code/Kotoba/WordListViewController.swift +++ b/code/Kotoba/WordListViewController.swift @@ -15,6 +15,8 @@ class WordListViewController: UITableViewController override func viewWillAppear(_ animated: Bool) { + super.viewWillAppear(animated) + self.shareButton.isEnabled = wordListStore.data.count > 0 }