fix: uncomment settings index cache path
This commit is contained in:
@@ -112,14 +112,14 @@ Singleton {
|
|||||||
|
|
||||||
function loadIndex(): var {
|
function loadIndex(): var {
|
||||||
const revision = ZUtils.gitRevision();
|
const revision = ZUtils.gitRevision();
|
||||||
// const cached = ZUtils.readTextFile(cachePath);
|
const cached = ZUtils.readTextFile(cachePath);
|
||||||
// if (cached) {
|
if (cached) {
|
||||||
// try {
|
try {
|
||||||
// const parsed = JSON.parse(cached);
|
const parsed = JSON.parse(cached);
|
||||||
// if (parsed.version === 3 && revision && parsed.revision === revision && parsed.locale === Qt.locale().name)
|
if (parsed.version === 3 && revision && parsed.revision === revision && parsed.locale === Qt.locale().name)
|
||||||
// return parsed;
|
return parsed;
|
||||||
// } catch (e) {}
|
} catch (e) {}
|
||||||
// }
|
}
|
||||||
const data = SettingsIndexer.buildIndex(`${Quickshell.shellDir}/Modules/Settings`, p => ZUtils.readTextFile(p), (d, s) => ZUtils.listFiles(d, s), (ctx, text) => qsTranslate(ctx, text));
|
const data = SettingsIndexer.buildIndex(`${Quickshell.shellDir}/Modules/Settings`, p => ZUtils.readTextFile(p), (d, s) => ZUtils.listFiles(d, s), (ctx, text) => qsTranslate(ctx, text));
|
||||||
data.revision = revision;
|
data.revision = revision;
|
||||||
data.locale = Qt.locale().name;
|
data.locale = Qt.locale().name;
|
||||||
|
|||||||
Reference in New Issue
Block a user