more unfinished changes, process tab for dashboard

This commit is contained in:
2026-09-30 14:26:50 +02:00
parent 0bfda04e91
commit 359f832609
98 changed files with 8633 additions and 2983 deletions
+5 -5
View File
@@ -7,7 +7,7 @@
#include <qsavefile.h>
#include <qurlquery.h>
#include "config/config.hpp"
#include "config/rootnodes.hpp"
#include "config/general.hpp"
#include "config/services.hpp"
@@ -75,7 +75,7 @@ Lyrics::Lyrics(QObject* parent)
m_loadDebounce->setInterval(k_loadDebounceMs);
QObject::connect(m_loadDebounce, &QTimer::timeout, this, &Lyrics::doLoad);
const auto* cfg = config::Config::instance();
const auto* cfg = config::ConfigSingleton::instance();
const auto* svcCfg = cfg->services();
const auto* genCfg = cfg->general();
@@ -114,7 +114,7 @@ void Lyrics::setPreferredBackend(LyricsBackend value) {
m_preferredBackend = value;
emit preferredBackendChanged();
config::Config::instance()->services()->set_lyricsBackend(value);
config::ConfigSingleton::instance()->services()->set_lyricsBackend(value);
scheduleLoad();
}
@@ -870,7 +870,7 @@ QNetworkReply* Lyrics::getJson(
void Lyrics::onPreferredBackendConfigChanged() {
const LyricsBackend desired =
config::Config::instance()->services()->lyricsBackend();
config::ConfigSingleton::instance()->services()->lyricsBackend();
if (desired == m_preferredBackend) {
return;
}
@@ -942,7 +942,7 @@ void Lyrics::persistTrackPrefs() {
}
QString Lyrics::lyricsDir() {
QString dir = config::Config::instance()->general()->lyricsDir();
QString dir = config::ConfigSingleton::instance()->general()->lyricsDir();
if (dir.isEmpty()) {
return {};
}