mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +02:00
Retain dialog data when reopening same dialog
This commit is contained in:
@@ -65,7 +65,8 @@ export const useAvatarStore = defineStore('Avatar', () => {
|
||||
cacheSize: '',
|
||||
cacheLocked: false,
|
||||
cachePath: '',
|
||||
fileAnalysis: {}
|
||||
fileAnalysis: {},
|
||||
timeSpent: 0
|
||||
});
|
||||
const avatarHistory = ref([]);
|
||||
|
||||
@@ -183,7 +184,11 @@ export const useAvatarStore = defineStore('Avatar', () => {
|
||||
id: avatarId,
|
||||
skipBreadcrumb: options.skipBreadcrumb
|
||||
});
|
||||
|
||||
D.visible = true;
|
||||
if (D.id === avatarId) {
|
||||
uiStore.setDialogCrumbLabel('avatar', D.id, D.ref?.name || D.id);
|
||||
return;
|
||||
}
|
||||
D.loading = true;
|
||||
D.id = avatarId;
|
||||
D.inCache = false;
|
||||
@@ -220,7 +225,6 @@ export const useAvatarStore = defineStore('Avatar', () => {
|
||||
return;
|
||||
}
|
||||
}
|
||||
D.visible = true;
|
||||
avatarRequest
|
||||
.getAvatar({ avatarId })
|
||||
.then((args) => {
|
||||
|
||||
Reference in New Issue
Block a user