forked from cory/tildefriends
		
	Fix stale data being saved when setting global settings.
This commit is contained in:
		@@ -520,8 +520,9 @@ async function getProcessBlob(blobId, key, options) {
 | 
			
		||||
				imports.core.globalSettingsGet = function (key) {
 | 
			
		||||
					return gGlobalSettings[key];
 | 
			
		||||
				};
 | 
			
		||||
				imports.core.globalSettingsSet = function (key, value) {
 | 
			
		||||
				imports.core.globalSettingsSet = async function (key, value) {
 | 
			
		||||
					print('Setting', key, value);
 | 
			
		||||
					await loadSettings();
 | 
			
		||||
					gGlobalSettings[key] = value;
 | 
			
		||||
					setGlobalSettings(gGlobalSettings);
 | 
			
		||||
					print('Done.');
 | 
			
		||||
@@ -1351,7 +1352,6 @@ function storePermission(user, packageOwner, packageName, permission, allow) {
 | 
			
		||||
 | 
			
		||||
export {
 | 
			
		||||
	gGlobalSettings as globalSettings,
 | 
			
		||||
	setGlobalSettings,
 | 
			
		||||
	invoke,
 | 
			
		||||
	getSessionProcessBlob,
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user