portalHelper: Fix runtime warning
When there is no URI, then the title should be empty, not null: Gjs-WARNING **: JS ERROR: Error: Argument 'str' (type utf8) may not be null https://bugzilla.gnome.org/show_bug.cgi?id=778552
This commit is contained in:
parent
304b68eff9
commit
98cdd44543
@ -176,7 +176,7 @@ const PortalWindow = new Lang.Class({
|
||||
if (uri)
|
||||
this._headerBar.setSubtitle(GLib.uri_unescape_string(uri, null));
|
||||
else
|
||||
this._headerBar.setSubtitle(null);
|
||||
this._headerBar.setSubtitle('');
|
||||
},
|
||||
|
||||
refresh: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user