use same while-loop condition as below

This commit is contained in:
Jeff Epler 2023-11-09 10:09:36 -06:00
parent b82ea41430
commit a48015e0db
No known key found for this signature in database
GPG key ID: D5BF15AB975AB4DE

View file

@ -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]: