From 350c7d70815b4bbb152f81c56980069e96c122c8 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 7 May 2020 19:37:10 -0700 Subject: [PATCH] Persist the IsAppCollectorGame attribute --- app/backend/nvcomputer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/backend/nvcomputer.cpp b/app/backend/nvcomputer.cpp index c87297ed..a7ce3874 100644 --- a/app/backend/nvcomputer.cpp +++ b/app/backend/nvcomputer.cpp @@ -19,6 +19,7 @@ #define SER_APPNAME "name" #define SER_APPID "id" #define SER_APPHDR "hdr" +#define SER_APPCOLLECTOR "appcollector" NvComputer::NvComputer(QSettings& settings) { @@ -41,6 +42,7 @@ NvComputer::NvComputer(QSettings& settings) app.name = settings.value(SER_APPNAME).toString(); app.id = settings.value(SER_APPID).toInt(); app.hdrSupported = settings.value(SER_APPHDR).toBool(); + app.isAppCollectorGame = settings.value(SER_APPCOLLECTOR).toBool(); this->appList.append(app); } @@ -83,6 +85,7 @@ void NvComputer::serialize(QSettings& settings) const settings.setValue(SER_APPNAME, appList[i].name); settings.setValue(SER_APPID, appList[i].id); settings.setValue(SER_APPHDR, appList[i].hdrSupported); + settings.setValue(SER_APPCOLLECTOR, appList[i].isAppCollectorGame); } settings.endArray(); }