add delay for pls update user options message

This commit is contained in:
end-4
2024-05-25 22:01:35 +07:00
parent 32a1a40f64
commit f9b2d759b3
@@ -189,13 +189,11 @@ function overrideConfigRecursive(userOverrides, configOptions = {}) {
}
}
overrideConfigRecursive(userOverrides, configOptions);
if (!optionsOkay) {
Utils.execAsync(['notify-send',
'Update your user options',
'One or more config options don\'t exist',
'-a', 'ags',
]).catch(print);
}
if (!optionsOkay) Utils.timeout(2000, () => Utils.execAsync(['notify-send',
'Update your user options',
'One or more config options don\'t exist',
'-a', 'ags',
]).catch(print))
globalThis['userOptions'] = configOptions;
export default configOptions;