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
overrideFormat = .globalFormat
overrideSecondsFormat = .globalFormat
placeID = UUID().uuidString
}
init(with originalTimezone: CLTimezoneData) {

1
Clocker/Preferences/General/PreferencesViewController.swift

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

Loading…
Cancel
Save