Simplify application header
This commit is contained in:
@@ -372,7 +372,11 @@ func _build_history_row(summary: Dictionary) -> Control:
|
||||
_add_table_cell(row, _plain_cell("%d / %d" % [completed_blocks(summary), int(summary.get("totalBlocks", 12))], dark), 0.8)
|
||||
_add_table_cell(row, _plain_cell(_score_text(summary), dark), 1.15)
|
||||
_add_table_cell(row, _plain_cell(_pass_chance_text(summary), dark), 1.0)
|
||||
var action: Control = _review_button(summary, dark) if state == "completed" else _plain_cell("—", dark)
|
||||
var action: Control
|
||||
if state == "completed":
|
||||
action = _review_button(summary, dark)
|
||||
else:
|
||||
action = _plain_cell("-", dark)
|
||||
_add_table_cell(row, action, 1.0)
|
||||
return panel
|
||||
|
||||
|
||||
Reference in New Issue
Block a user