Browse Source

Swap.

pull/92/head
Abhishek 4 years ago
parent
commit
0a22226d0c
  1. 1
      Clocker/Panel/Data Layer/TimezoneData.swift
  2. 1
      Clocker/Preferences/General/PreferencesViewController.swift

1
Clocker/Panel/Data Layer/TimezoneData.swift

@ -58,6 +58,7 @@ class TimezoneData: NSObject, NSCoding {
isSystemTimezone = false isSystemTimezone = false
overrideFormat = .globalFormat overrideFormat = .globalFormat
overrideSecondsFormat = .globalFormat overrideSecondsFormat = .globalFormat
placeID = UUID().uuidString
} }
init(with originalTimezone: CLTimezoneData) { init(with originalTimezone: CLTimezoneData) {

1
Clocker/Preferences/General/PreferencesViewController.swift

@ -779,7 +779,6 @@ 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