This commit is contained in:
tamaina 2023-07-31 08:37:27 +00:00
parent fc8be99e57
commit ffec11e3f7
2 changed files with 3 additions and 3 deletions

View File

@ -415,7 +415,7 @@ function onContextmenu(ev: MouseEvent): void {
function menu(viaKeyboard = false): void {
if (!note.value) return;
const { menu, cleanup } = getNoteMenu({ note: note.value, translating, translation, menuButton, isDeleted, currentClip: currentClip?.value });
const { menu, cleanup } = getNoteMenu({ note: note.value, translating, translation, isDeleted, currentClip: currentClip?.value });
os.popupMenu(menu, menuButton.value, {
viaKeyboard,
}).then(focus).finally(cleanup);

View File

@ -365,14 +365,14 @@ function onContextmenu(ev: MouseEvent): void {
react();
} else {
if (!note.value) return;
const { menu, cleanup } = getNoteMenu({ note: note.value, translating, translation, menuButton, isDeleted });
const { menu, cleanup } = getNoteMenu({ note: note.value, translating, translation, isDeleted });
os.contextMenu(menu, ev).then(focus).finally(cleanup);
}
}
function menu(viaKeyboard = false): void {
if (!note.value) return;
const { menu, cleanup } = getNoteMenu({ note: note.value, translating, translation, menuButton, isDeleted });
const { menu, cleanup } = getNoteMenu({ note: note.value, translating, translation, isDeleted });
os.popupMenu(menu, menuButton.value, {
viaKeyboard,
}).then(focus).finally(cleanup);