From 0871f16db49f60e8bca562a7cc03bab90f470202 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Wed, 15 Oct 2025 07:04:31 +1100 Subject: [PATCH] Fix empty instance queue message box --- src/stores/instance.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/stores/instance.js b/src/stores/instance.js index 81b31f9f..55f0c673 100644 --- a/src/stores/instance.js +++ b/src/stores/instance.js @@ -1017,15 +1017,6 @@ export const useInstanceStore = defineStore('Instance', () => { ref.position = position; ref.queueSize = queueSize; ref.updatedAt = Date.now(); - if (!ref.$msgBox || ref.$msgBox.closed) { - ref.$msgBox = ElMessage({ - message: '', - type: 'info', - duration: 0, - showClose: true, - customClass: 'vrc-instance-queue-message' - }); - } if (!ref.$groupName) { ref.$groupName = await getGroupName(instanceId); } @@ -1037,7 +1028,14 @@ export const useInstanceStore = defineStore('Instance', () => { ref.$worldName, ref.$groupName ); - ref.$msgBox.message = `You are in position ${ref.position} of ${ref.queueSize} in the queue for ${location} `; + ref.$msgBox?.close(); + ref.$msgBox = ElMessage({ + message: `You are in position ${ref.position} of ${ref.queueSize} in the queue for ${location} `, + type: 'info', + duration: 0, + showClose: true, + customClass: 'vrc-instance-queue-message' + }); queuedInstances.value.set(instanceId, ref); // workerTimers.setTimeout(this.instanceQueueTimeout, 3600000); }