mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-25 09:43:49 +02:00
Catch closing dialogs
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user