Browse Source

Remove weird debug stuff.

pull/92/head
Abhishek 5 years ago
parent
commit
f043539a4c
  1. 14
      Clocker/Panel/ParentPanelController.swift
  2. 10
      Clocker/Panel/UI/TimezoneDataSource.swift

14
Clocker/Panel/ParentPanelController.swift

@ -166,6 +166,10 @@ class ParentPanelController: NSWindowController {
object: nil)
showDebugVersionViewIfNeccesary()
if #available(macOS 10.16, *) {
mainTableView.style = .fullWidth
}
}
private func showDebugVersionViewIfNeccesary() {
@ -387,6 +391,10 @@ class ParentPanelController: NSWindowController {
newHeight += 8.0
}
if object?.isSystemTimezone == true {
newHeight += 5
}
newHeight += mainTableView.intercellSpacing.height
return newHeight
@ -546,12 +554,6 @@ 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
}
}
}

10
Clocker/Panel/UI/TimezoneDataSource.swift

@ -67,12 +67,6 @@ extension TimezoneDataSource: NSTableViewDataSource, NSTableViewDelegate {
cellView.setAccessibilityIdentifier(currentModel.formattedTimezoneLabel())
cellView.setAccessibilityLabel(currentModel.formattedTimezoneLabel())
#if DEBUG
if row == 0 {
cellView.currentLocationIndicator.isHidden = false
}
#endif
return cellView
}
@ -99,6 +93,10 @@ extension TimezoneDataSource: NSTableViewDataSource, NSTableViewDelegate {
rowHeight += userFontSize.intValue + 25
}
if model.isSystemTimezone {
rowHeight += 5
}
rowHeight += (userFontSize.intValue * 2)
return CGFloat(rowHeight)
}

Loading…
Cancel
Save