mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 03:19:33 +02:00
Restore "Are you sure" popup
This commit is contained in:
parent
769a29332c
commit
46c0e83127
1 changed files with 15 additions and 6 deletions
|
@ -577,12 +577,21 @@ function checkNewContent() {
|
||||||
title: 'New home content',
|
title: 'New home content',
|
||||||
message: 'A newer version of the home content set is available.\nDo you wish to update?'
|
message: 'A newer version of the home content set is available.\nDo you wish to update?'
|
||||||
}, function(idx) {
|
}, function(idx) {
|
||||||
if (idx === 0) {
|
if (idx === 0) {
|
||||||
backupResourceDirectoriesAndRestart();
|
dialog.showMessageBox({
|
||||||
} else {
|
type: 'warning',
|
||||||
// They don't want to update, mark content set as current
|
buttons: ['Yes', 'No'],
|
||||||
userConfig.set('homeContentLastModified', new Date());
|
title: 'Are you sure?',
|
||||||
}
|
message: 'Updating with the new content will remove all your current content and settings and place them in a backup folder.\nAre you sure?'
|
||||||
|
}, function(idx) {
|
||||||
|
if (idx === 0) {
|
||||||
|
backupResourceDirectoriesAndRestart();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
// They don't want to update, mark content set as current
|
||||||
|
userConfig.set('homeContentLastModified', new Date());
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue