Skip to content

Commit

Permalink
Avoid crash in LSP previewer
Browse files Browse the repository at this point in the history
It did not like this binding since it caused a binding loop in the
preview UI (see slint-ui/slint#3989).

Fortunately we can just replace it with a stretching rectangle.
  • Loading branch information
bjorn committed Nov 23, 2023
1 parent 197df05 commit e196b78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raccoin_ui/ui/transactions.slint
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ component TransactionsHeader inherits TableHeader {
HeaderCell { text: "Fee"; horizontal-alignment: right; }
HeaderCell { text: "Value (€)"; horizontal-alignment: right; }
HeaderCell { text: "Gain (€)"; horizontal-alignment: right; }
Rectangle { horizontal-stretch: 0.1; }
HorizontalLayout {
padding-left: parent.width * 0.015;
height: 0;
visible: false; // only used for alignment purposes
spacing: 3px;
Expand Down Expand Up @@ -174,8 +174,8 @@ component TransactionDisplay inherits Rectangle {
color: tx.gain < 0 || tx.gain-error != "" ? #ff0000 : tx.gain > 0 ? #00ff00 : transparent;
horizontal-alignment: right;
}
Rectangle { horizontal-stretch: 0.1; }
HorizontalLayout {
padding-left: parent.width * 0.015;
spacing: 3px;

tx-btn := SmallButton {
Expand Down

0 comments on commit e196b78

Please sign in to comment.