Skip to content

Commit

Permalink
modellist: remove invalidate calls now that we have fixed the signals
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
cebtenzzre committed Oct 8, 2024
1 parent 073bd4d commit af16348
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions gpt4all-chat/src/modellist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1005,11 +1005,6 @@ void ModelList::updateData(const QString &id, const QVector<QPair<int, QVariant>
if (shouldSort)
resortModel();

// FIXME(jared): for some reason these don't update correctly when the source model changes, so we explicitly invalidate them
m_selectableModels->invalidate();
m_installedModels->invalidate();
m_downloadableModels->invalidate();

emit selectableModelListChanged();
}

Expand Down

0 comments on commit af16348

Please sign in to comment.