| Summary: | Display only genres that are *currently* present in music library | ||
|---|---|---|---|
| Product: | [Applications] Elisa | Reporter: | Nikolai Försterling <devel2020> |
| Component: | general | Assignee: | Matthieu Gallien <matthieu_gallien> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | nate |
| Priority: | NOR | Keywords: | usability |
| Version First Reported In: | 23.08.5 | ||
| Target Milestone: | --- | ||
| Platform: | Kubuntu | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/multimedia/elisa/-/commit/a9a8469e708acdf7edcee24865dca88d33caef9c | Version Fixed/Implemented In: | 25.04.0 |
| Sentry Crash Report: | |||
| Attachments: | example for an empty genre that doesn't need to be shown in the genre list | ||
|
Description
Nikolai Försterling
2024-08-29 08:08:13 UTC
Right now i'm not sure whether that request is valid. I have to clear all previous databases of Eliza and scan my collection again, it is possible that those empty genres are remains from former parts of my music. Ok, confirmed (test database from scratch) that every genre that is ever discovered in a collection is listet, regardless if currently used. Shouldn't they be hidden anyway when there're no songs related to them anymore? Yeah, the issue is that we don't clean the database of old genres that don't have any music in them anymore. A possibly relevant merge request was started @ https://invent.kde.org/multimedia/elisa/-/merge_requests/642 Git commit 53eb7b14ff6d4a920fd20f4f0dc80ad934acfe19 by Jack Hill. Committed on 26/11/2024 at 20:12. Pushed by jackh into branch 'master'. Database: remove artists after removing last associated track M +142 -87 autotests/databaseinterfacetest.cpp M +191 -76 src/databaseinterface.cpp M +11 -0 src/databaseinterface.h https://invent.kde.org/multimedia/elisa/-/commit/53eb7b14ff6d4a920fd20f4f0dc80ad934acfe19 Git commit cea8246671abefbf6239bee48d488b428e1acc25 by Jack Hill. Committed on 26/11/2024 at 20:12. Pushed by jackh into branch 'master'. Database: remove genres after removing last associated track M +111 -0 autotests/databaseinterfacetest.cpp M +137 -25 src/databaseinterface.cpp M +13 -1 src/databaseinterface.h https://invent.kde.org/multimedia/elisa/-/commit/cea8246671abefbf6239bee48d488b428e1acc25 Git commit a9a8469e708acdf7edcee24865dca88d33caef9c by Jack Hill. Committed on 26/11/2024 at 20:12. Pushed by jackh into branch 'master'. Connect genreRemoved signal to data models M +6 -7 autotests/viewsmodeltest.cpp M +1 -0 src/modeldataloader.cpp M +2 -0 src/modeldataloader.h M +24 -0 src/models/datamodel.cpp M +2 -0 src/models/datamodel.h M +19 -0 src/viewslistdata.cpp M +2 -0 src/viewslistdata.h https://invent.kde.org/multimedia/elisa/-/commit/a9a8469e708acdf7edcee24865dca88d33caef9c |