mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Adopt to API change of dialog.showMessageBox.
This commit is contained in:
@@ -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]?()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user