feat: remember current tab
This commit is contained in:
@ -73,10 +73,12 @@ const promptDeleteProfile = async () => {
|
||||
|
||||
const dataExists = ref(false);
|
||||
|
||||
path.join(general.dataDir, `profile-${props.p!.game}-${props.p!.name}`).then(
|
||||
async (p) => {
|
||||
dataExists.value = await invoke('file_exists', { path: p });
|
||||
}
|
||||
general.dataDir.then((dataDir) =>
|
||||
path
|
||||
.join(dataDir, `profile-${props.p!.game}-${props.p!.name}`)
|
||||
.then(async (p) => {
|
||||
dataExists.value = await invoke('file_exists', { path: p });
|
||||
})
|
||||
);
|
||||
</script>
|
||||
|
||||
@ -145,11 +147,15 @@ path.join(general.dataDir, `profile-${props.p!.game}-${props.p!.name}`).then(
|
||||
class="self-center"
|
||||
style="width: 2rem; height: 2rem"
|
||||
@click="
|
||||
path
|
||||
.join(general.configDir, `profile-${p!.game}-${p!.name}`)
|
||||
.then(async (path) => {
|
||||
await invoke('open_file', { path });
|
||||
})
|
||||
async () =>
|
||||
path
|
||||
.join(
|
||||
await general.configDir,
|
||||
`profile-${p!.game}-${p!.name}`
|
||||
)
|
||||
.then(async (path) => {
|
||||
await invoke('open_file', { path });
|
||||
})
|
||||
"
|
||||
/>
|
||||
<Button
|
||||
@ -162,11 +168,15 @@ path.join(general.dataDir, `profile-${props.p!.game}-${props.p!.name}`).then(
|
||||
class="self-center"
|
||||
style="width: 2rem; height: 2rem"
|
||||
@click="
|
||||
path
|
||||
.join(general.dataDir, `profile-${p!.game}-${p!.name}`)
|
||||
.then(async (path) => {
|
||||
await invoke('open_file', { path });
|
||||
})
|
||||
async () =>
|
||||
path
|
||||
.join(
|
||||
await general.dataDir,
|
||||
`profile-${p!.game}-${p!.name}`
|
||||
)
|
||||
.then(async (path) => {
|
||||
await invoke('open_file', { path });
|
||||
})
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user