From 0c1b40f041840795cc1b76b892a102f4dc4aeb79 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Sun, 4 Oct 2020 11:52:31 -0500 Subject: [PATCH] Corrections. --- Clocker/Menu Bar/StatusContainerView.swift | 2 +- Clocker/Panel/Data Layer/TimezoneData.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Clocker/Menu Bar/StatusContainerView.swift b/Clocker/Menu Bar/StatusContainerView.swift index 978c8f2..de66829 100644 --- a/Clocker/Menu Bar/StatusContainerView.swift +++ b/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) } diff --git a/Clocker/Panel/Data Layer/TimezoneData.swift b/Clocker/Panel/Data Layer/TimezoneData.swift index affcb70..4a15d6e 100644 --- a/Clocker/Panel/Data Layer/TimezoneData.swift +++ b/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 } }