From 375eb471b9a42a5a8838987dd7d60d4196d9db0d Mon Sep 17 00:00:00 2001 From: Abhishek Banthia <8280282+n0shake@users.noreply.github.com> Date: Fri, 6 May 2022 08:49:18 +0530 Subject: [PATCH] Add docs. --- Clocker/Preferences/Menu Bar/StatusContainerView.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Clocker/Preferences/Menu Bar/StatusContainerView.swift b/Clocker/Preferences/Menu Bar/StatusContainerView.swift index e50ad6a..a3105af 100644 --- a/Clocker/Preferences/Menu Bar/StatusContainerView.swift +++ b/Clocker/Preferences/Menu Bar/StatusContainerView.swift @@ -47,6 +47,12 @@ protocol StatusItemViewConforming { func statusItemViewIdentifier() -> String } +/// Observe for User Default changes for timezones in App Delegate and reconstruct the Status View if neccesary +/// We'll inject the menubar timezones into Status Container View which'll pass it to StatusItemView +/// The benefit of doing so is reducing time-spent calculating menubar timezones and deserialization through `TimezoneData.customObject` +/// Also inject, `shouldDisplaySecondsInMenubar` +/// + class StatusContainerView: NSView { private var previousX: Int = 0 private let store: DataStore