[gnome-maps/wip/mlundblad/es6-modules] WIP: application: Use string templates instead of imports.format
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/es6-modules] WIP: application: Use string templates instead of imports.format
- Date: Mon, 23 May 2022 21:17:13 +0000 (UTC)
commit 05ae67bbf534c3992c9e8176ea6ecb022dc48f1a
Author: Marcus Lundblad <ml dfupdate se>
Date: Mon May 23 23:13:49 2022 +0200
WIP: application: Use string templates instead of imports.format
imports.format is deprecated. Use ES string templates instead.
Keep using format for gettext.
src/application.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/application.js b/src/application.js
index 29ab6f77..4a74d764 100644
--- a/src/application.js
+++ b/src/application.js
@@ -260,7 +260,7 @@ export class Application extends Gtk.Application {
this._mainWindow.connect('destroy', () => this._onWindowDestroy());
if (GLib.getenv('MAPS_DEBUG') === 'focus') {
this._mainWindow.connect('set-focus', (window, widget) => {
- log('* focus widget: %s'.format(widget));
+ log(`* focus widget: ${widget}`);
});
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]