mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-23 00:33:50 +02:00
Catch closing dialogs
This commit is contained in:
@@ -186,17 +186,18 @@
|
||||
await updateRegistryBackupDialog();
|
||||
}
|
||||
|
||||
async function promptVrcRegistryBackupName() {
|
||||
try {
|
||||
const { value } = await ElMessageBox.prompt('Enter a name for the backup', 'Backup Name', {
|
||||
confirmButtonText: 'Confirm',
|
||||
cancelButtonText: 'Cancel',
|
||||
inputPattern: /\S+/,
|
||||
inputErrorMessage: 'Name is required',
|
||||
inputValue: 'Backup'
|
||||
});
|
||||
await handleBackupVrcRegistry(value);
|
||||
} catch (error) {}
|
||||
function promptVrcRegistryBackupName() {
|
||||
ElMessageBox.prompt('Enter a name for the backup', 'Backup Name', {
|
||||
confirmButtonText: 'Confirm',
|
||||
cancelButtonText: 'Cancel',
|
||||
inputPattern: /\S+/,
|
||||
inputErrorMessage: 'Name is required',
|
||||
inputValue: 'Backup'
|
||||
})
|
||||
.then(({ value }) => {
|
||||
handleBackupVrcRegistry(value);
|
||||
})
|
||||
.catch(() => {});
|
||||
}
|
||||
|
||||
async function openJsonFileSelectorDialogElectron() {
|
||||
|
||||
Reference in New Issue
Block a user