Catch closing dialogs

This commit is contained in:
Natsumi
2025-10-17 11:27:19 +11:00
parent 529c6c2b04
commit 9e95e1734c
5 changed files with 99 additions and 85 deletions

View File

@@ -417,14 +417,16 @@ export const usePhotonStore = defineStore('Photon', () => {
'prompt.overlay_message_timeout.input_error'
)
}
).then(({ value, action }) => {
if (action === 'confirm' && value && !isNaN(Number(value))) {
state.photonOverlayMessageTimeout = Math.trunc(
Number(value) * 1000
);
vrStore.updateVRConfigVars();
}
});
)
.then(({ value, action }) => {
if (action === 'confirm' && value && !isNaN(Number(value))) {
state.photonOverlayMessageTimeout = Math.trunc(
Number(value) * 1000
);
vrStore.updateVRConfigVars();
}
})
.catch(() => {});
}
function promptPhotonLobbyTimeoutThreshold() {
@@ -441,13 +443,15 @@ export const usePhotonStore = defineStore('Photon', () => {
inputPattern: /\d+$/,
inputErrorMessage: t('prompt.photon_lobby_timeout.input_error')
}
).then(({ value, action }) => {
if (action === 'confirm' && value && !isNaN(Number(value))) {
state.photonLobbyTimeoutThreshold = Math.trunc(
Number(value) * 1000
);
}
});
)
.then(({ value, action }) => {
if (action === 'confirm' && value && !isNaN(Number(value))) {
state.photonLobbyTimeoutThreshold = Math.trunc(
Number(value) * 1000
);
}
})
.catch(() => {});
}
function startLobbyWatcherLoop() {