use same while-loop condition as below
This commit is contained in:
parent
b82ea41430
commit
a48015e0db
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ class Tui(App[None]):
|
|||
if idx == 0:
|
||||
return
|
||||
|
||||
while idx > 1 and not "role_user" in children[idx].classes:
|
||||
while idx > 1 and not children[idx].has_class("role_user"):
|
||||
idx -= 1
|
||||
|
||||
for m in children[idx : idx + 2]:
|
||||
|
|
|
|||
Loading…
Reference in a new issue