extensionPrefs: Fix more fallout from un-templating strings

The version field in extension metadata is a number, so we cannot
just use it as a string.

('creator' should be fine, but change it as well for the symmetry)

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1031
This commit is contained in:
Florian Müllner 2020-02-19 19:25:35 +01:00
parent e781e1fdba
commit affbec73ef

View File

@ -703,10 +703,10 @@ var ExtensionRow = GObject.registerClass({
this._updatesIcon.visible = this.hasUpdate; this._updatesIcon.visible = this.hasUpdate;
this._versionLabel.label = this.version; this._versionLabel.label = this.version.toString();
this._versionLabel.visible = this.version !== ''; this._versionLabel.visible = this.version !== '';
this._authorLabel.label = this.creator; this._authorLabel.label = this.creator.toString();
this._authorLabel.visible = this.creator !== ''; this._authorLabel.visible = this.creator !== '';
} }