Skip to content

Commit

Permalink
Ensure permissions are always listed in the same order
Browse files Browse the repository at this point in the history
  • Loading branch information
boatbomber committed Feb 14, 2024
1 parent a7e15a0 commit 1af32ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/src/App/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,8 @@ function App:render()
for api in apiMap do
table.insert(apiList, api)
end
table.sort(apiList)

local granted = self:requestPermission(plugin, source, name, apiList, true)
if granted then
self.headlessAPI:_setPermissions(source, name, apiList)
Expand Down

0 comments on commit 1af32ad

Please sign in to comment.