1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-15 12:54:06 +00:00

Removed Zenity dependency

This commit is contained in:
2023-12-22 15:26:29 +01:00
parent 208db82ba7
commit ef9318576a
16 changed files with 59 additions and 195 deletions

View File

@ -1,12 +1,12 @@
<script>
import { OpenDirectory } from '$wails/go/ui/UI.js';
import { ChooseDirectory } from '$wails/go/app/App.js';
export let value = '';
export let id = '';
export let title = 'Choose a directory';
async function selectDir() {
value = await OpenDirectory(title) || value;
value = await ChooseDirectory(title) || value;
}
</script>