[gnome-sound-recorder/bilelmoussaoui/fixes] replace const with var
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder/bilelmoussaoui/fixes] replace const with var
- Date: Thu, 2 Jul 2020 19:36:03 +0000 (UTC)
commit 713d11eed9b38915aeca8c3c202072491dd13160
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Thu Jul 2 21:34:55 2020 +0200
replace const with var
it doesn't seem we can export const
src/application.js | 4 ++--
src/row.js | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 1da4e5f..f0e5e41 100644
--- a/src/application.js
+++ b/src/application.js
@@ -21,8 +21,8 @@
const { Gdk, Gio, GLib, GObject, Gst, Gtk, Handy } = imports.gi;
/* Translators: "Recordings" here refers to the name of the directory where the application places files */
-const RecordingsDir = Gio.file_new_for_path(GLib.build_filenamev([GLib.get_home_dir(), _('Recordings')]));
-const Settings = new Gio.Settings({ schema: pkg.name });
+var RecordingsDir = Gio.file_new_for_path(GLib.build_filenamev([GLib.get_home_dir(), _('Recordings')]));
+var Settings = new Gio.Settings({ schema: pkg.name });
const { Window } = imports.window;
diff --git a/src/row.js b/src/row.js
index ebbc534..46ab4d1 100644
--- a/src/row.js
+++ b/src/row.js
@@ -2,7 +2,7 @@
const { Gdk, GObject, Gtk } = imports.gi;
const { displayDateTime, formatTime } = imports.utils;
-const RowState = {
+var RowState = {
PLAYING: 0,
PAUSED: 1,
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]