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

@@ -778,13 +778,13 @@ export const useUserStore = defineStore('User', () => {
) {
return;
}
uiStore.openDialog({
const isMainDialogOpen = uiStore.openDialog({
type: 'user',
id: userId
});
const D = userDialog.value;
D.visible = true;
if (D.id === userId) {
if (isMainDialogOpen && D.id === userId) {
uiStore.setDialogCrumbLabel(
'user',
D.id,