Adopt to API change of dialog.showMessageBox.

This commit is contained in:
Cheng Zhao
2013-05-18 12:20:57 +08:00
parent 153668db56
commit c8891c1008

View File

@@ -165,12 +165,8 @@ window.atom =
buttons.push buttonLabelsAndCallbacks.shift()
callbacks.push buttonLabelsAndCallbacks.shift()
dialog = remote.require 'dialog'
chosen = dialog.showMessageBox remote.getCurrentWindow(),
type: dialog.MESSAGE_BOX_INFORMATION
message: message
detail: detailedMessage
buttons: buttons
chosen = remote.require('dialog').showMessageBox
type: 'info', message: message, detail: detailedMessage, buttons: buttons
callbacks[chosen]?()