cleanup: Prefer template strings
Template strings are much nicer than string concatenation, so use them where possible; this excludes translatable strings and any strings containing '/' (until we can depend on gettext >= 0.20[0]). [0] https://savannah.gnu.org/bugs/?50920 https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/612
This commit is contained in:

committed by
Florian Müllner

parent
46874eed05
commit
0d035a4e53
@ -46,9 +46,9 @@ var Indicator = class extends PanelMenu.SystemIndicator {
|
||||
super();
|
||||
|
||||
this._settings = new Gio.Settings({ schema_id: LOCATION_SCHEMA });
|
||||
this._settings.connect('changed::' + ENABLED,
|
||||
this._settings.connect(`changed::${ENABLED}`,
|
||||
this._onMaxAccuracyLevelChanged.bind(this));
|
||||
this._settings.connect('changed::' + MAX_ACCURACY_LEVEL,
|
||||
this._settings.connect(`changed::${MAX_ACCURACY_LEVEL}`,
|
||||
this._onMaxAccuracyLevelChanged.bind(this));
|
||||
|
||||
this._indicator = this._addIndicator();
|
||||
@ -241,7 +241,7 @@ var AppAuthorizer = class {
|
||||
this._onAuthDone = onAuthDone;
|
||||
|
||||
let appSystem = Shell.AppSystem.get_default();
|
||||
this._app = appSystem.lookup_app(this.desktopId + ".desktop");
|
||||
this._app = appSystem.lookup_app(`${this.desktopId}.desktop`);
|
||||
if (this._app == null || this._permStoreProxy == null) {
|
||||
this._completeAuth();
|
||||
|
||||
|
Reference in New Issue
Block a user