Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modellist: fix incorrect signal use and remove invalidate calls #3042

Merged
merged 5 commits into from
Oct 8, 2024

Conversation

cebtenzzre
Copy link
Member

This is a reduced version of #3034 that should fix the scrolling issue that was caused by a workaround. It hopefully fixes the original problem as well, although this has not been confirmed due to difficulty reproducing the original issue.

Fixes #2943

layoutChanged is only used when the *order* changes. When rows are
inserted or removed, one of the other three signals is fired.

Signed-off-by: Jared Van Bortel <[email protected]>
dataChanged will not work correctly if we emit it on an old index after
sorting.

Signed-off-by: Jared Van Bortel <[email protected]>
These were causing the model view scroll position to jump back to the
start whenever a change happened, which was not intended. Hopefully,
they are no longer needed after the previous changes.

Signed-off-by: Jared Van Bortel <[email protected]>
Signed-off-by: Jared Van Bortel <[email protected]>
@cebtenzzre cebtenzzre force-pushed the fix-modellist-signals branch from af16348 to 0efdcc0 Compare October 8, 2024 15:24
@cebtenzzre cebtenzzre marked this pull request as ready for review October 8, 2024 15:24
@cebtenzzre cebtenzzre requested a review from manyoso October 8, 2024 15:25
@cebtenzzre cebtenzzre merged commit 8f3d107 into main Oct 8, 2024
4 of 10 checks passed
@cebtenzzre cebtenzzre deleted the fix-modellist-signals branch October 8, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scroll issue while downloading a model
2 participants