From 7d2033db3dba51994ce4f5603899af0bf2c8df16 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Sun, 31 Mar 2019 12:13:15 -0400 Subject: [PATCH] Remove comment containing documentation for the dialog.showMessageBox method from electron. That API is ever-evolving and it's best to rely on their published docs. --- app/lib/ui/index.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/app/lib/ui/index.js b/app/lib/ui/index.js index 53e1b99..4ec9547 100644 --- a/app/lib/ui/index.js +++ b/app/lib/ui/index.js @@ -162,17 +162,6 @@ gui.info = function (title, message) { message : message }; dialog.showMessageBox(config); - /* - type String - Can be "none", "info", "error", "question" or "warning". On Windows, "question" displays the same icon as "info", unless you set an icon using the "icon" option. - buttons Array - Array of texts for buttons. - defaultId Integer - Index of the button in the buttons array which will be selected by default when the message box opens. - title String - Title of the message box, some platforms will not show it. - message String - Content of the message box. - detail String - Extra information of the message. - icon NativeImage - cancelId Integer - The value will be returned when user cancels the dialog instead of clicking the buttons of the dialog. By default it is the index of the buttons that have "cancel" or "no" as label, or 0 if there is no such buttons. On OS X and Windows the index of "Cancel" button will always be used as cancelId, not matter whether it is already specified. - noLink Boolean - On Windows Electron will try to figure out which one of the buttons are common buttons (like "Cancel" or "Yes"), and show the others as command links in the dialog. This can make the dialog appear in the style of modern Windows apps. If you don't like this behavior, you can set noLink to true. - */ }; gui.confirm = function () {}; gui.warn = function (title, message) {