Fix mac permissions button

This commit is contained in:
Lncvrt committed 2025-07-25 16:40:09 -07:00
1 parent 8f6b06271c
commit b1478c02c1
2 files changed
+78 -12

No files matched your search

+20
View File
@@ -466,6 +466,26 @@ function App () {
>
Open Folder
</button>
<button
className='button'
style={{
display: platform() == 'macos' ? 'block' : 'none'
}}
onClick={async () => {
const exe =
managingVersion.version.executables[
managingVersion.version.platforms.indexOf(
platform()
)
]
await invoke('fix_mac_permissions', {
name: managingVersion.version.version,
executable: exe
})
}}
>
Fix permissions
</button>
</div>
</>
) : (