[gnome-maps/wip/mlundblad/es6-modules: 7/25] 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: 7/25] WIP: application: Use string templates instead of imports.format
- Date: Fri, 27 May 2022 19:48:22 +0000 (UTC)
commit b29723568c83edfb2ddd91e508998046e5e4c960
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]