mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Merge pull request #16658 from atom/fix-prompt-restart
Register for `core.titleBar` changes after the initial load of config
This commit is contained in:
@@ -146,8 +146,6 @@ class AtomApplication extends EventEmitter {
|
||||
this.config.set('core.titleBar', 'custom')
|
||||
}
|
||||
|
||||
this.config.onDidChange('core.titleBar', this.promptForRestart.bind(this))
|
||||
|
||||
process.nextTick(() => this.autoUpdateManager.initialize())
|
||||
this.applicationMenu = new ApplicationMenu(this.version, this.autoUpdateManager)
|
||||
this.atomProtocolHandler = new AtomProtocolHandler(this.resourcePath, this.safeMode)
|
||||
@@ -171,6 +169,7 @@ class AtomApplication extends EventEmitter {
|
||||
if (!this.configFilePromise) {
|
||||
this.configFilePromise = this.configFile.watch()
|
||||
this.disposable.add(await this.configFilePromise)
|
||||
this.config.onDidChange('core.titleBar', this.promptForRestart.bind(this))
|
||||
}
|
||||
|
||||
const optionsForWindowsToOpen = []
|
||||
|
||||
Reference in New Issue
Block a user