diff --git a/CHANGELOG.md b/CHANGELOG.md index 5816c037..fb17c974 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Fixed + +- Losing profiles on upgrade. [#163](https://github.com/passepartoutvpn/passepartout-ios/issues/163) +- Twitch link does not work when Twitch app not installed. [#162](https://github.com/passepartoutvpn/passepartout-ios/issues/162) + ## 1.13.0 (2021-01-01) ### Added diff --git a/Passepartout-iOS/Scenes/NetworkSettingsViewController.swift b/Passepartout-iOS/Scenes/NetworkSettingsViewController.swift index eb2daead..21aa3357 100644 --- a/Passepartout-iOS/Scenes/NetworkSettingsViewController.swift +++ b/Passepartout-iOS/Scenes/NetworkSettingsViewController.swift @@ -144,7 +144,7 @@ class NetworkSettingsViewController: UITableViewController { updateGateway(networkChoices.gateway) updateDNS(networkChoices.dns) updateProxy(networkChoices.proxy) - updateMTU(networkChoices.mtu) + updateMTU(networkChoices.mtu ?? ProfileNetworkChoices.defaultChoice) } override func viewWillAppear(_ animated: Bool) { @@ -218,7 +218,7 @@ class NetworkSettingsViewController: UITableViewController { private func updateMTU(_ choice: NetworkChoice) { networkChoices.mtu = choice - switch networkChoices.mtu { + switch networkChoices.mtu ?? ProfileNetworkChoices.defaultChoice { case .client: if let settings = clientNetworkSettings { networkSettings.copyMTU(from: settings) @@ -392,7 +392,7 @@ extension NetworkSettingsViewController { case .mtu: let cell = Cells.setting.dequeue(from: tableView, for: indexPath) cell.leftText = L10n.Core.NetworkSettings.Mtu.title - cell.rightText = networkChoices.mtu.description + cell.rightText = (networkChoices.mtu ?? ProfileNetworkChoices.defaultChoice).description return cell case .gatewayIPv4: diff --git a/Submodules/Core b/Submodules/Core index 1cacb261..97092dbf 160000 --- a/Submodules/Core +++ b/Submodules/Core @@ -1 +1 @@ -Subproject commit 1cacb2612d9577a19a1406b89e21a52185695932 +Subproject commit 97092dbf0ff403a8e117a7976af7de93fe4f2136