mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 12:28:51 +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',
|
||||
message: 'A newer version of the home content set is available.\nDo you wish to update?'
|
||||
}, function(idx) {
|
||||
if (idx === 0) {
|
||||
backupResourceDirectoriesAndRestart();
|
||||
} else {
|
||||
// They don't want to update, mark content set as current
|
||||
userConfig.set('homeContentLastModified', new Date());
|
||||
}
|
||||
if (idx === 0) {
|
||||
dialog.showMessageBox({
|
||||
type: 'warning',
|
||||
buttons: ['Yes', 'No'],
|
||||
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