Ensure permissions are always listed in the same order

This commit is contained in:
boatbomber 2024-02-13 18:35:46 -08:00
parent a7e15a0259
commit 1af32ad2c7

View file

@ -960,6 +960,8 @@ function App:render()
for api in apiMap do for api in apiMap do
table.insert(apiList, api) table.insert(apiList, api)
end end
table.sort(apiList)
local granted = self:requestPermission(plugin, source, name, apiList, true) local granted = self:requestPermission(plugin, source, name, apiList, true)
if granted then if granted then
self.headlessAPI:_setPermissions(source, name, apiList) self.headlessAPI:_setPermissions(source, name, apiList)