From 06fc3540e0fb5430084e915c9b2aef9655de7a7b Mon Sep 17 00:00:00 2001 From: Abhishek Date: Sun, 21 Jun 2020 02:06:34 -0500 Subject: [PATCH] Some cool debug options. --- Clocker/Panel/ParentPanelController.swift | 6 ++++++ Clocker/Panel/UI/TimezoneDataSource.swift | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/Clocker/Panel/ParentPanelController.swift b/Clocker/Panel/ParentPanelController.swift index 059e9e0..fe83fbb 100644 --- a/Clocker/Panel/ParentPanelController.swift +++ b/Clocker/Panel/ParentPanelController.swift @@ -546,6 +546,12 @@ class ParentPanelController: NSWindowController { cellView.sunriseImage.image = model.isSunriseOrSunset ? Themer.shared().sunriseImage() : Themer.shared().sunsetImage() cellView.layout(with: model) updateDatePicker() + + #if DEBUG + if $0 == 0 { + cellView.currentLocationIndicator.isHidden = false + } + #endif } } } diff --git a/Clocker/Panel/UI/TimezoneDataSource.swift b/Clocker/Panel/UI/TimezoneDataSource.swift index 61dd99e..beaab76 100644 --- a/Clocker/Panel/UI/TimezoneDataSource.swift +++ b/Clocker/Panel/UI/TimezoneDataSource.swift @@ -67,6 +67,12 @@ extension TimezoneDataSource: NSTableViewDataSource, NSTableViewDelegate { cellView.setAccessibilityIdentifier(currentModel.formattedTimezoneLabel()) cellView.setAccessibilityLabel(currentModel.formattedTimezoneLabel()) + #if DEBUG + if row == 0 { + cellView.currentLocationIndicator.isHidden = false + } + #endif + return cellView }