Browse Source

Corrections.

pull/92/head
Abhishek 4 years ago
parent
commit
0c1b40f041
  1. 2
      Clocker/Menu Bar/StatusContainerView.swift
  2. 4
      Clocker/Panel/Data Layer/TimezoneData.swift

2
Clocker/Menu Bar/StatusContainerView.swift

@ -170,7 +170,7 @@ class StatusContainerView: NSView {
}
}
if newWidth != frame.size.width, newWidth >= frame.size.width + 1.5 {
if newWidth != frame.size.width, newWidth > frame.size.width + 2.0 {
print("Correcting our width to \(newWidth) and the previous width was \(frame.size.width)")
frame = CGRect(x: frame.origin.x, y: frame.origin.y, width: newWidth, height: frame.size.height)
}

4
Clocker/Panel/Data Layer/TimezoneData.swift

@ -431,8 +431,8 @@ class TimezoneData: NSObject, NSCoding {
guard let compared = object as? TimezoneData else {
return false
}
// Plain timezones might have similar placeID. Adding another check for timezone identifier.
// Plain timezones might have similar placeID. Adding another check for timezone identifier.
return placeID == compared.placeID && timezoneID == compared.timezoneID
}
}

Loading…
Cancel
Save