fix: action tooltips not updating

This commit is contained in:
2023-12-08 22:46:01 +01:00
parent 9d7cefb3b4
commit af01426f43

View File

@@ -33,6 +33,10 @@ export const action: Action<Element, {title?: string; shortcut?: string}> = (
}
return {
update(updated) {
title = updated.title
shortcut = updated.shortcut
},
destroy() {
tooltip.destroy()
hotkeys.unbind(shortcut)