popcon: fix info filename

pull/2771/head
Rob Pilling 2023-05-24 08:27:29 +01:00
parent 966a855a0f
commit 6968bb762c
4 changed files with 8 additions and 8 deletions

View File

@ -26,9 +26,9 @@
trimCache(cache);
require("Storage").writeJSON("popcon.cache.json", cache);
if (orderChanged) {
var info = oldRead("popcon.info", true);
var info = oldRead("popconlaunch.info", true);
info.cacheBuster = !info.cacheBuster;
require("Storage").writeJSON("popcon.info", info);
require("Storage").writeJSON("popconlaunch.info", info);
}
};
var sortCache = function () {

View File

@ -38,9 +38,9 @@ const saveCache = (cache: Cache, orderChanged: boolean) => {
require("Storage").writeJSON("popcon.cache.json", cache);
if(orderChanged){
// ensure launchers reload their caches:
const info: AppInfo & { cacheBuster?: boolean } = oldRead("popcon.info", true);
const info: AppInfo & { cacheBuster?: boolean } = oldRead("popconlaunch.info", true);
info.cacheBuster = !info.cacheBuster;
require("Storage").writeJSON("popcon.info", info);
require("Storage").writeJSON("popconlaunch.info", info);
}
};

View File

@ -5,9 +5,9 @@
'Reset app popularities': function () {
var S = require("Storage");
S.erase("popcon.cache.json");
var info = S.readJSON("popcon.info", true);
var info = S.readJSON("popconlaunch.info", true);
info.cacheBuster = !info.cacheBuster;
S.writeJSON("popcon.info", info);
S.writeJSON("popconlaunch.info", info);
E.showMessage("Popcon reset", "Done");
},
};

View File

@ -6,9 +6,9 @@
const S = require("Storage");
S.erase("popcon.cache.json");
const info: AppInfo & { cacheBuster?: boolean } = S.readJSON("popcon.info", true);
const info: AppInfo & { cacheBuster?: boolean } = S.readJSON("popconlaunch.info", true);
info.cacheBuster = !info.cacheBuster;
S.writeJSON("popcon.info", info);
S.writeJSON("popconlaunch.info", info);
E.showMessage("Popcon reset", "Done");
},