mirror of
https://github.com/theupriser/steamify-cachyos.git
synced 2026-10-14 13:45:13 +02:00
feat: a PC that had Gaming on NVIDIA on gets the SteamOS conversion ticked, as an update
This commit is contained in:
1 parent
2ae3c4f4b3
commit
1c302b836b
3 files changed
+12
-1
No files matched your search
+2
-1
@@ -101,7 +101,8 @@ Item {
|
||||
if (it.kind !== "toggle") continue;
|
||||
if (hidden(it)) { if (it.on) p.push({ id: it.id, action: "off" }); continue; }
|
||||
if (it.parent && !want[it.parent]) { if (it.on) p.push({ id: it.id, action: "off" }); continue; }
|
||||
if (want[it.id] && !it.on) p.push({ id: it.id, action: "on", isNew: !!it["new"] });
|
||||
// (An item that is off but flagged "update" replaces what the PC has: the conversion for "Gaming on NVIDIA".)
|
||||
if (want[it.id] && !it.on) p.push({ id: it.id, action: it.update ? "update" : "on", isNew: !!it["new"] });
|
||||
else if (!want[it.id] && it.on) p.push({ id: it.id, action: "off" });
|
||||
else if (want[it.id] && (reapply || it.update)) p.push({ id: it.id, action: reapply ? "again" : "update" });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user