Browse Source

Some cool debug options.

pull/92/head
Abhishek 4 years ago
parent
commit
06fc3540e0
  1. 6
      Clocker/Panel/ParentPanelController.swift
  2. 6
      Clocker/Panel/UI/TimezoneDataSource.swift

6
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
}
}
}

6
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
}

Loading…
Cancel
Save