feat: verbose toggle, info tab, many misc fixes

This commit is contained in:
2025-04-14 19:20:08 +00:00
parent 37df371006
commit f588892b05
30 changed files with 410 additions and 186 deletions

View File

@ -2,10 +2,12 @@
import { ref } from 'vue';
import Button from 'primevue/button';
import InputText from 'primevue/inputtext';
import * as path from '@tauri-apps/api/path';
import { invoke } from '../invoke';
import { usePrfStore } from '../stores';
import { useGeneralStore, usePrfStore } from '../stores';
import { ProfileMeta } from '../types';
const general = useGeneralStore();
const prf = usePrfStore();
const isEditing = ref(false);
@ -110,7 +112,7 @@ const deleteProfile = async () => {
style="width: 2rem; height: 2rem"
@click="isEditing = true"
/>
<!-- <Button
<Button
rounded
icon="pi pi-folder"
severity="help"
@ -121,9 +123,13 @@ const deleteProfile = async () => {
@click="
path
.join(general.dataDir, `profile-${p!.game}-${p!.name}`)
.then(open)
.then(async (path) => {
if (await invoke('file_exists', { path })) {
await invoke('open_file', { path });
}
})
"
/> -->
/>
</div>
</template>