Fix stale data being saved when setting global settings.
Some checks failed
Build Tilde Friends / Build-All (push) Failing after 8m53s
Some checks failed
Build Tilde Friends / Build-All (push) Failing after 8m53s
This commit is contained in:
parent
17d6cc7d46
commit
3c499c834b
@ -520,8 +520,9 @@ async function getProcessBlob(blobId, key, options) {
|
|||||||
imports.core.globalSettingsGet = function (key) {
|
imports.core.globalSettingsGet = function (key) {
|
||||||
return gGlobalSettings[key];
|
return gGlobalSettings[key];
|
||||||
};
|
};
|
||||||
imports.core.globalSettingsSet = function (key, value) {
|
imports.core.globalSettingsSet = async function (key, value) {
|
||||||
print('Setting', key, value);
|
print('Setting', key, value);
|
||||||
|
await loadSettings();
|
||||||
gGlobalSettings[key] = value;
|
gGlobalSettings[key] = value;
|
||||||
setGlobalSettings(gGlobalSettings);
|
setGlobalSettings(gGlobalSettings);
|
||||||
print('Done.');
|
print('Done.');
|
||||||
@ -1351,7 +1352,6 @@ function storePermission(user, packageOwner, packageName, permission, allow) {
|
|||||||
|
|
||||||
export {
|
export {
|
||||||
gGlobalSettings as globalSettings,
|
gGlobalSettings as globalSettings,
|
||||||
setGlobalSettings,
|
|
||||||
invoke,
|
invoke,
|
||||||
getSessionProcessBlob,
|
getSessionProcessBlob,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user