diff --git a/Passepartout/App/macOS/CHANGELOG.md b/Passepartout/App/macOS/CHANGELOG.md index 3cef2b35..7a2b74e7 100644 --- a/Passepartout/App/macOS/CHANGELOG.md +++ b/Passepartout/App/macOS/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 + +- Prevent ineffective editing of trusted network SSID. + ## 1.15.1 (2021-02-14) ### Changed diff --git a/Passepartout/App/macOS/Scenes/Service/Customization/TrustedNetworksViewController.swift b/Passepartout/App/macOS/Scenes/Service/Customization/TrustedNetworksViewController.swift index c7be314c..9889f55c 100644 --- a/Passepartout/App/macOS/Scenes/Service/Customization/TrustedNetworksViewController.swift +++ b/Passepartout/App/macOS/Scenes/Service/Customization/TrustedNetworksViewController.swift @@ -83,6 +83,7 @@ class TrustedNetworksViewController: NSViewController, ProfileCustomization { switch column.identifier { case Columns.ssid: column.title = "SSID" + column.isEditable = false case Columns.trust: column.title = L10n.App.Trusted.Columns.Trust.title @@ -181,8 +182,13 @@ extension TrustedNetworksViewController: NSTableViewDataSource, NSTableViewDeleg guard row < model.sortedWifis.count else { // XXX return } - switch tableColumn?.identifier { +// case Columns.ssid: +// guard let ssidName = object as? String else { +// fatalError("Expected a String for trust SSID") +// } +// model.renameWifi(at: row, to: ssidName) + case Columns.trust: guard let checkTrust = object as? Bool else { fatalError("Expected a Bool for trust checkbox state")