feat(touch_bar): functional new note button

This commit is contained in:
Elian Doran 2025-03-08 12:06:35 +02:00
parent f2f0f6178b
commit dd575787fe
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View File

@ -162,6 +162,8 @@ export type CommandMappings = {
moveNoteDownInHierarchy: ContextMenuCommandData;
selectAllNotesInParent: ContextMenuCommandData;
createNoteIntoInbox: CommandData;
addNoteLauncher: ContextMenuCommandData;
addScriptLauncher: ContextMenuCommandData;
addWidgetLauncher: ContextMenuCommandData;

View File

@ -42,10 +42,8 @@ export default class TouchBarWidget extends Component {
const items = [
new TouchBarButton({
icon: this.#buildIcon("NSTouchBarAddDetailTemplate"),
click: () => {
console.log("New note pressed.");
}
icon: this.#buildIcon("NSTouchBarComposeTemplate"),
click: () => this.triggerCommand("createNoteIntoInbox")
})
];