diff --git a/src/modules/TimerOndemand.js b/src/modules/TimerOndemand.js index cf1bc7e..521317c 100644 --- a/src/modules/TimerOndemand.js +++ b/src/modules/TimerOndemand.js @@ -29,7 +29,7 @@ const { log_debug } = Me.imports.utils; const { key_binding_auto_repeat, get_actor } = Me.imports.compat; /** - * The On-demand Timer allows the user to manually switch between the day and + * The On-demand Timer allows the user to manually switch between the day and * night variants with a button in the top bar and a keybinding. * * The user can change the key combination in the extension's preferences. @@ -62,13 +62,13 @@ var TimerOndemand = class { _add_keybinding() { log_debug('Adding On-demand Timer keybinding...'); - // add our own keybinging handler + // add our own keydinging handler main.wm.addKeybinding( - 'nightthemeswitcher-ondemand-keybinding', - e.settingsManager._extensionsSettings, - key_binding_auto_repeat(), - Shell.ActionMode.NORMAL | Shell.ActionMode.OVERVIEW, - this._toggle_time.bind(this) + 'nightthemeswitcher-ondemand-keybinding', + e.settingsManager._extensionsSettings, + key_binding_auto_repeat(), + Shell.ActionMode.NORMAL | Shell.ActionMode.OVERVIEW, + this._toggle_time.bind(this) ); log_debug('Added On-demand Timer keybinding.'); } diff --git a/src/preferences/Schedule.js b/src/preferences/Schedule.js index becd1c5..a867f7e 100644 --- a/src/preferences/Schedule.js +++ b/src/preferences/Schedule.js @@ -70,23 +70,23 @@ class KeyBindingControl { const iter = list_store.append(); const update_shortcut_row = (accel) => { - const [key, mods] = accel ? Gtk.accelerator_parse(accel) : [0, 0]; - list_store.set(iter, [COLUMN_KEY, COLUMN_MODS], [key, mods]); + const [key, mods] = accel ? Gtk.accelerator_parse(accel) : [0, 0]; + list_store.set(iter, [COLUMN_KEY, COLUMN_MODS], [key, mods]); }; renderer.connect('accel-edited', (renderer, path, key, mods) => { - const accel = Gtk.accelerator_name(key, mods); - update_shortcut_row(accel); - settings.set_strv(KEYBINDING_KEY, [accel]); + const accel = Gtk.accelerator_name(key, mods); + update_shortcut_row(accel); + settings.set_strv(KEYBINDING_KEY, [accel]); }); renderer.connect('accel-cleared', () => { - update_shortcut_row(null); - settings.set_strv(KEYBINDING_KEY, []); + update_shortcut_row(null); + settings.set_strv(KEYBINDING_KEY, []); }); settings.connect(`changed::${KEYBINDING_KEY}`, () => { - update_shortcut_row(settings.get_strv(KEYBINDING_KEY)[0]); + update_shortcut_row(settings.get_strv(KEYBINDING_KEY)[0]); }); column.pack_start(renderer, true); diff --git a/src/schemas/org.gnome.shell.extensions.nightthemeswitcher.gschema.xml b/src/schemas/org.gnome.shell.extensions.nightthemeswitcher.gschema.xml index 25e97ed..6a74639 100644 --- a/src/schemas/org.gnome.shell.extensions.nightthemeswitcher.gschema.xml +++ b/src/schemas/org.gnome.shell.extensions.nightthemeswitcher.gschema.xml @@ -102,9 +102,9 @@ The current time used in on-demand mode - t']]]> - Key combination to toggle time - The key combination that will toggle time in on-demand mode + t']]]> + Key combination to toggle time + The key combination that will toggle time in on-demand mode false