mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Only show installed version when different
This commit is contained in:
@@ -34,7 +34,7 @@ class PackageConfigView extends View
|
||||
@name.text(@pack.name)
|
||||
|
||||
installedVersion = atom.getLoadedPackage(@pack.name)?.getVersion()
|
||||
if installedVersion
|
||||
if installedVersion and @pack.version isnt installedVersion
|
||||
@versions.text("Version: #{@pack.version} (#{installedVersion} installed)")
|
||||
else
|
||||
@versions.text("Version: #{@pack.version}")
|
||||
|
||||
Reference in New Issue
Block a user