-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Multiple fixes for ModelList/Download #3034
base: main
Are you sure you want to change the base?
Commits on Oct 3, 2024
-
Revert "modellist: work around filtered item models getting out of sy…
…nc (#2545)" This is what caused regression seen in issue #2943 This reverts commit 30692a2. Signed-off-by: Adam Treat <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 158f9b9 - Browse repository at this point
Copy the full SHA 158f9b9View commit details
Commits on Oct 4, 2024
-
Signed-off-by: Jared Van Bortel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6cde7cb - Browse repository at this point
Copy the full SHA 6cde7cbView commit details -
modellist: prefer const iterators to avoid detach
Signed-off-by: Jared Van Bortel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d3840fb - Browse repository at this point
Copy the full SHA d3840fbView commit details -
do not connect layoutChanged to countChanged
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]>
Configuration menu - View commit details
-
Copy full SHA for 45120d4 - Browse repository at this point
Copy the full SHA 45120d4View commit details -
modellist: fix missing #include
Signed-off-by: Jared Van Bortel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3dea7e2 - Browse repository at this point
Copy the full SHA 3dea7e2View commit details -
modellist: assert that update functions are called from main thread
The locking strategy used by ModelList assumes that only one thread will be trying to update the model list at a time, as writes cannot be implemented in a fully threadsafe manner. Signed-off-by: Jared Van Bortel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d0158d2 - Browse repository at this point
Copy the full SHA d0158d2View commit details -
mysettings: eraseModel only needs an id
Signed-off-by: Jared Van Bortel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9ec0f92 - Browse repository at this point
Copy the full SHA 9ec0f92View commit details -
modellist: reduce updateData indent
Signed-off-by: Jared Van Bortel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 62186a0 - Browse repository at this point
Copy the full SHA 62186a0View commit details -
modellist: emit layoutChanged when sorting, but not otherwise
Also, hint to layoutChanged about the specific way in which the model was sorted. Signed-off-by: Jared Van Bortel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 348c051 - Browse repository at this point
Copy the full SHA 348c051View commit details -
modellist: emit dataChanged on the correct index
dataChanged will not work correctly if we emit it on an old index after sorting. Signed-off-by: Jared Van Bortel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3cfcb2a - Browse repository at this point
Copy the full SHA 3cfcb2aView commit details -
modellist: fix removal and improve locking
There were issues with removing clones or models with clones from the model page, as well as trying to remove a model that no longer exists on disk, despite being in settings. These should now be resolved. Signed-off-by: Jared Van Bortel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 291b4bf - Browse repository at this point
Copy the full SHA 291b4bfView commit details
Commits on Oct 7, 2024
-
modellist: provide a path property for convenience
This should always be used instead of joining the current model path setting with the filename, as models may be in subdirectories. But fixing this correctly is not in scope for this PR. Signed-off-by: Jared Van Bortel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f814336 - Browse repository at this point
Copy the full SHA f814336View commit details -
fix removal of models in subdirectories
removeModel is starting to make sense now. Signed-off-by: Jared Van Bortel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8a64b03 - Browse repository at this point
Copy the full SHA 8a64b03View commit details -
modellist: fix models.json cache location
- The filename must have a version number, or we will possibly load the cache for the wrong version of GPT4All. - The file should be stored in an appropriate folder for cache, not in the settings location. Signed-off-by: Jared Van Bortel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1cbea10 - Browse repository at this point
Copy the full SHA 1cbea10View commit details -
Signed-off-by: Jared Van Bortel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4e8b82c - Browse repository at this point
Copy the full SHA 4e8b82cView commit details