This repository has been archived by the owner on Aug 14, 2021. It is now read-only.
v1.18.0
- [CHANGE] Refactored entry update methods
setEntry(cmd, data)
:
Clarify that this method resets all attributes not passed in
data
are reset to defaults.
Also, passing a plain title string asdata
is deprecated: usesetTitle()
instead.- Add method
updateEntry(cmd, data)
.
Example:updateEntry("info", {title: "Show info...", enable: false})
UnlikesetEntry()
, this method only updates menu attibutes that are
passed indata
, leaving other attributes intact. - Add methods
getEntry()
,getEntryWrapper()
,setIcon
,setTitle
(in addition to the existingenableEntry
andshowEntry
).