Skip to content

Commit

Permalink
TimelineItem: drop properties that are only used once
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneRal committed Jul 12, 2023
1 parent f9632d0 commit fa9b95a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions client/qml/TimelineItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ Item {
enabled: visible
height: childrenRect.height * visible

readonly property bool sectionVisible:
eventGrouping === EventGrouping.ShowDateAndAuthor
readonly property bool authorSectionVisible:
eventGrouping >= EventGrouping.ShowAuthor
readonly property bool replaced: marks === EventStatus.Replaced

readonly property bool pending: marks > EventStatus.Normal
&& marks < EventStatus.Redacted
readonly property bool failed: marks === EventStatus.SendingFailed
Expand Down Expand Up @@ -158,7 +156,7 @@ Item {
Rectangle {
width: parent.width
height: childrenRect.height + 2
visible: sectionVisible
visible: eventGrouping === EventGrouping.ShowDateAndAuthor
color: palette.alternateBase
Label {
font.bold: true
Expand Down Expand Up @@ -336,7 +334,7 @@ Item {
: ""))
: "")
+ display
+ (replaced
+ (marks === EventStatus.Replaced
? "<small style='color:\"" + settings.lowlight_color
+ "\"'> (" + qsTr("edited") + ")</small>"
: "")
Expand Down

0 comments on commit fa9b95a

Please sign in to comment.