mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
All subscriptions can be in one call
This commit is contained in:
@@ -13,19 +13,13 @@ export default class AutoUpdateManager {
|
||||
this.subscriptions.add(
|
||||
atom.applicationDelegate.onDidBeginDownloadingUpdate(() => {
|
||||
this.emitter.emit('did-begin-downloading-update')
|
||||
})
|
||||
)
|
||||
this.subscriptions.add(
|
||||
}),
|
||||
atom.applicationDelegate.onDidBeginCheckingForUpdate(() => {
|
||||
this.emitter.emit('did-begin-checking-for-update')
|
||||
})
|
||||
)
|
||||
this.subscriptions.add(
|
||||
}),
|
||||
atom.applicationDelegate.onDidCompleteDownloadingUpdate(() => {
|
||||
this.emitter.emit('did-complete-downloading-update')
|
||||
})
|
||||
)
|
||||
this.subscriptions.add(
|
||||
}),
|
||||
atom.applicationDelegate.onUpdateNotAvailable(() => {
|
||||
this.emitter.emit('update-not-available')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user