Skip to content

Commit

Permalink
prefsshortcuts: fix shortcut editing
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin committed Nov 6, 2022
1 parent 577d177 commit 07869b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prefsshortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ var Widget = GObject.registerClass(
);

[this.shortcuts_list, this.global_shortcuts_list].forEach(shortcuts_list => {
shortcuts_list.foreach((model, path, i) => {
shortcuts_list.foreach((model, path, iter) => {
const i = iter.copy();

this.scope.subscribe(
this.settings[model.get_value(i, 0)],
shortcuts => {
Expand Down

0 comments on commit 07869b1

Please sign in to comment.