mirror of
https://github.com/atom/atom.git
synced 2026-02-08 21:55:05 -05:00
Only disable a package if it isn't already disabled
This commit is contained in:
committed by
Machiste Quintana
parent
e7f15d06e4
commit
78543a7a34
@@ -199,7 +199,10 @@ class PackageManager
|
||||
# Returns the {Package} that was disabled or null if it isn't loaded.
|
||||
disablePackage: (name) ->
|
||||
pack = @loadPackage(name)
|
||||
pack?.disable()
|
||||
|
||||
unless @isPackageDisabled(name)
|
||||
pack?.disable()
|
||||
|
||||
pack
|
||||
|
||||
# Public: Is the package with the given name disabled?
|
||||
|
||||
Reference in New Issue
Block a user