mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-10 03:52:57 +00:00
fix: action tooltips not updating
This commit is contained in:
@@ -33,6 +33,10 @@ export const action: Action<Element, {title?: string; shortcut?: string}> = (
|
|||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
update(updated) {
|
||||||
|
title = updated.title
|
||||||
|
shortcut = updated.shortcut
|
||||||
|
},
|
||||||
destroy() {
|
destroy() {
|
||||||
tooltip.destroy()
|
tooltip.destroy()
|
||||||
hotkeys.unbind(shortcut)
|
hotkeys.unbind(shortcut)
|
||||||
|
|||||||
Reference in New Issue
Block a user