Page MenuHome

Fix T90082: Autoscrolling after renaming in the File Browser broken
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Nov 25 2021, 12:03 PM.

Details

Summary

Caused by rB6b0869039a40: File Browser: Select files and directories after renaming

Above commit introduced selection after renaming. This includes calling
file_select_deselect_all [which resorts and refilters].

So now, to have the correct file for scrolling, get it again after
sorting by calling file_params_find_renamed again.

Diff Detail

Repository
rB Blender

Event Timeline

Philipp Oeser (lichtwerk) requested review of this revision.Nov 25 2021, 12:03 PM
Philipp Oeser (lichtwerk) created this revision.
Philipp Oeser (lichtwerk) edited the summary of this revision. (Show Details)

@Bastien Montagne (mont29): added you as reviewer here since you worked on this as well in rB4326f8af08c845eeb4eb45800ca047f690044007

Didn't test this yet, but seems like a good catch. So if this at least mitigates the issue well, it's a fine fix.
Best to keep eyes open for further glitches with the smooth scrolling.

This revision is now accepted and ready to land.Nov 25 2021, 5:29 PM