From 8fe29cf92401633cbd52820cc4747af7fb9f8449 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Tue, 23 Oct 2018 18:50:24 +0200 Subject: [PATCH] Fix original configuration not really saved Added in #10 but partially broken. --- CHANGELOG.md | 6 ++++++ Passepartout-iOS/Scenes/ConfigurationViewController.swift | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11ef3554..aed74409 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ 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 + +- Original configuration not saved after reset. + ## 1.0 beta 1075 (2018-10-23) ### Added diff --git a/Passepartout-iOS/Scenes/ConfigurationViewController.swift b/Passepartout-iOS/Scenes/ConfigurationViewController.swift index 3503320e..46cbba93 100644 --- a/Passepartout-iOS/Scenes/ConfigurationViewController.swift +++ b/Passepartout-iOS/Scenes/ConfigurationViewController.swift @@ -134,7 +134,7 @@ class ConfigurationViewController: UIViewController, TableModelHost { itemRefresh.isEnabled = true // allow for manual reconnection tableView.reloadData() - delegate?.configurationShouldReinstall() + delegate?.configuration(didUpdate: originalConfiguration) } @IBAction private func refresh() {