Skip to content

Commit 54e3499

Browse files
committed
fix accel for delete note not working
1 parent 12ceb02 commit 54e3499

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/Application.vala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ namespace jorts {
7272
}
7373
});
7474
var new_action = new SimpleAction ("new", null);
75-
set_accels_for_action ("app.new", {"<Control>n"});
75+
set_accels_for_action ("app.action_new", {"<Control>n"});
7676
add_action (new_action);
7777
new_action.activate.connect (() => {
7878
create_note(null);
7979
});
8080
var delete_action = new SimpleAction ("delete", null);
81-
set_accels_for_action ("app.delete", {"<Control>w"});
81+
set_accels_for_action ("app.action_delete", {"<Control>w"});
8282
add_action (delete_action);
8383
delete_action.activate.connect (() => {
8484
MainWindow note = (MainWindow)get_active_window ();

src/MainWindow.vala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,10 @@ namespace jorts {
320320
var label = "%s%".printf(zoomtostring);
321321
this.popover.zoom_default_button.set_label(label);
322322
((Application)this.application).latest_zoom = zoom;
323+
324+
print(label);
325+
326+
323327
}
324328
}
325329
}

0 commit comments

Comments
 (0)