Skip to content

Commit

Permalink
fix first row not getting rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
X-sam committed Jul 26, 2024
1 parent 9ab9b2b commit 213875e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/python/main/ayab/knitprogress.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ def update_progress(
# When we show a new row, we recover the header info and recombine it with its row (now row idx 2)
self.make_row_with_spacer()

self.instantiate_row_from_columns(midline, columns)
if self.columnCount() != len(columns):
self.setColumnCount(len(columns))
n_cols = len(columns)
if n_cols < 4:
self.hideColumn(5)
self.instantiate_row_from_columns(midline, columns)

self.previousStatus = status
self.previous_row_mulitplier = row_multiplier
Expand Down

0 comments on commit 213875e

Please sign in to comment.