Browse Source

Some cool debug options.

pull/92/head
Abhishek 5 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.sunriseImage.image = model.isSunriseOrSunset ? Themer.shared().sunriseImage() : Themer.shared().sunsetImage()
cellView.layout(with: model) cellView.layout(with: model)
updateDatePicker() 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.setAccessibilityIdentifier(currentModel.formattedTimezoneLabel())
cellView.setAccessibilityLabel(currentModel.formattedTimezoneLabel()) cellView.setAccessibilityLabel(currentModel.formattedTimezoneLabel())
#if DEBUG
if row == 0 {
cellView.currentLocationIndicator.isHidden = false
}
#endif
return cellView return cellView
} }

Loading…
Cancel
Save