Browse Source

Made dialog message clear

Leo Lamprecht 7 years ago
parent
commit
78c87d4bd3
1 changed files with 3 additions and 3 deletions
  1. 3 3
      docs/tutorial/updates.md

+ 3 - 3
docs/tutorial/updates.md

@@ -73,8 +73,8 @@ autoUpdater.on('update-downloaded', (event, releaseNotes, releaseName) => {
     type: 'info',
     buttons: ['Restart', 'Later'],
     title: 'Application Update',
-    message: 'A new version has been downloaded. Restart the application to apply the updates.',
-    detail: releaseName + '\n\n' + releaseNotes
+    message: process.platform === 'win32' ? releaseNotes : releaseName,
+    detail: 'A new version has been downloaded. Restart the application to apply the updates.'
   }
 
   dialog.showMessageBox(dialogOpts, (response) => {
@@ -92,4 +92,4 @@ autoUpdater.on('error', message => {
   console.error('There was a problem updating the application')
   console.error(message)
 })
-```
+```