mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-24 01:03:50 +02:00
Fix avatar time spent and reload dialog when opening same dialog when no dialog is open
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user