From a9c4dd343068cdc35bd809a931d91dc291ba0830 Mon Sep 17 00:00:00 2001 From: emeric Date: Sun, 17 Sep 2023 11:46:03 +0200 Subject: [PATCH] Update artist link type combo when DB changed --- src/lms/ui/explore/SearchView.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lms/ui/explore/SearchView.cpp b/src/lms/ui/explore/SearchView.cpp index ccfb2dd5..471f431d 100644 --- a/src/lms/ui/explore/SearchView.cpp +++ b/src/lms/ui/explore/SearchView.cpp @@ -66,6 +66,12 @@ namespace UserInterface { refreshView(); }); + + LmsApp->getScannerEvents().scanComplete.connect(this, [this](const Scanner::ScanStats& stats) + { + if (stats.nbChanges()) + _artistLinkType->setModel(ArtistListHelpers::createArtistLinkTypesModel()); + }); } std::size_t