mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Restore initial styles in AtomEnvironment::reset
This commit is contained in:
@@ -156,6 +156,7 @@ class AtomEnvironment extends Model
|
||||
packageManager: @packages, configDirPath, resourcePath, safeMode, @config,
|
||||
styleManager: @styles, notificationManager: @notifications, viewRegistry: @views
|
||||
})
|
||||
@initialStyleElements = @styles.getSnapshot()
|
||||
|
||||
MenuManager = require './menu-manager'
|
||||
@menu = new MenuManager({resourcePath, keymapManager: @keymaps, packageManager: @packages})
|
||||
@@ -242,6 +243,8 @@ class AtomEnvironment extends Model
|
||||
@commands.clear()
|
||||
registerDefaultCommands(this)
|
||||
|
||||
@styles.restoreSnapshot(@initialStyleElements)
|
||||
|
||||
###
|
||||
Section: Event Subscription
|
||||
###
|
||||
|
||||
Reference in New Issue
Block a user