Browse Source

Provide unique identifiers for timezones that are added.

pull/92/head
Abhishek 4 years ago
parent
commit
5b2b5a7901
  1. 1
      Clocker/Preferences/General/PreferencesViewController.swift

1
Clocker/Preferences/General/PreferencesViewController.swift

@ -779,6 +779,7 @@ extension PreferencesViewController {
private func cleanupAfterInstallingTimezone() { private func cleanupAfterInstallingTimezone() {
let data = TimezoneData() let data = TimezoneData()
data.placeID = UUID().uuidString
data.setLabel(CLEmptyString) data.setLabel(CLEmptyString)
let currentSelection = searchField.stringValue.isEmpty == false ? searchResultsDataSource.timezoneFilteredArray[availableTimezoneTableView.selectedRow % searchResultsDataSource.timezoneFilteredArray.count] : let currentSelection = searchField.stringValue.isEmpty == false ? searchResultsDataSource.timezoneFilteredArray[availableTimezoneTableView.selectedRow % searchResultsDataSource.timezoneFilteredArray.count] :

Loading…
Cancel
Save