Fix avatar time spent and reload dialog when opening same dialog when no dialog is open

This commit is contained in:
Natsumi
2026-02-16 23:43:17 +11:00
committed by pa
parent 9b313e04ba
commit 5d36163eef
6 changed files with 19 additions and 15 deletions

View File

@@ -131,13 +131,13 @@ export const useGroupStore = defineStore('Group', () => {
if (!groupId) {
return;
}
uiStore.openDialog({
const isMainDialogOpen = uiStore.openDialog({
type: 'group',
id: groupId
});
const D = groupDialog.value;
D.visible = true;
if (D.id === groupId) {
if (isMainDialogOpen && D.id === groupId) {
uiStore.setDialogCrumbLabel('group', D.id, D.ref?.name || D.id);
instanceStore.applyGroupDialogInstances();
D.loading = false;