                 className: 'btn-success'
                 onDidClick: =>
                     atom.open(pathsToOpen: [installPath])
-                    @dismissNotification()
+                    @dismissNotification("MODX installation finished.")
             }]
             dismissable: true
 


    runBuild: (installPath) ->
        dismiss = @dismissNotification
        command = 'php'
        args = [path.join(installPath, '_build/transport.core.php')]
        stdout = (output) -> console.log output
        exit = (code) -> atom.notifications.add 'success', 'Build done.'
        process = new BufferedProcess({command, args, stdout, exit})
        process.onWillThrowError((error) -> dismiss())

    callForGit: (callback) ->
        installPath = @getInstallPath()

            detail: 'MODX Installation is now in progress.\nSuccess message will appear when it\'s done.'
            dismissable: true

    dismissNotification: (message) =>
        atom.notifications.getNotifications().forEach (notification) =>
            if notification.message is message
                notification.dismiss()

    done: ->
        installPath = @getInstallPath()
        @dismissNotification("MODX Installation")

        atom.notifications.add 'success', 'MODX installation finished.',
            buttons: [{
