Restore "Are you sure" popup

This commit is contained in:
Atlante45 2016-09-30 10:30:21 -07:00
parent 769a29332c
commit 46c0e83127

View file

@ -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());
}
}); });
} }
} }