Browse Source

Do not show timezone hover string if slider value != 0

Addressing feedback:

Interestingly when the “TimeScroller” is not on now (so it is in the future or the past and has the small X on its top right) and when I go over the locations with my moue the format stays in the “GMT-X” format and doesn’t go back. So there is some inconsistency that would be good to iron-out for a better app feel
master
Abhi 2 years ago
parent
commit
2f23a9d765
  1. 2
      Clocker/Panel/UI/TimezoneDataSource.swift

2
Clocker/Panel/UI/TimezoneDataSource.swift

@ -205,7 +205,7 @@ extension TimezoneDataSource: PanelTableViewDelegate {
} }
rowCellView.extraOptions.alphaValue = (rowIndex == row) ? 1 : 0.5 rowCellView.extraOptions.alphaValue = (rowIndex == row) ? 1 : 0.5
if rowIndex == row, let hoverString = hoverStringForSelectedRow(row: row) { if rowIndex == row, let hoverString = hoverStringForSelectedRow(row: row), sliderValue == 0 {
rowCellView.relativeDate.stringValue = hoverString rowCellView.relativeDate.stringValue = hoverString
} }
} }

Loading…
Cancel
Save