mirror of https://github.com/mongodb/mongo
SERVER-111671 Ignore rows without files in browser.py (#42910)
GitOrigin-RevId: 19e4a59438b0b4f6f27e2fdad7d56469b6302a71
This commit is contained in:
parent
45cc6f63fb
commit
53c302f840
|
|
@ -534,7 +534,8 @@ class FilesTree(Tree):
|
||||||
|
|
||||||
def seek(file):
|
def seek(file):
|
||||||
for row in tree.root.children:
|
for row in tree.root.children:
|
||||||
if row.data.name == file.name:
|
# rows separating marked and unmarked files have None in row.data
|
||||||
|
if type(row.data) == File and row.data.name == file.name:
|
||||||
tree.center_scroll = True
|
tree.center_scroll = True
|
||||||
row.expand()
|
row.expand()
|
||||||
tree.move_cursor(row, animate=True)
|
tree.move_cursor(row, animate=True)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue