forked from Berry-Dash/launcher
Fix mac permissions button
This commit is contained in:
20
src/main.tsx
20
src/main.tsx
@@ -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>
|
||||
</>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user