aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorkali2018-11-08 20:36:30 +0100
committerKali Kaneko2018-11-14 20:42:10 +0100
commitf5df9ef609c410eddc16af7681008f4ea58fe49c (patch)
tree1d9acf5e65c90fbb9aeed6909bbb3c63f20161cc /example
parent19c034af4717bf1737fc722e1804f5eb57e3bec5 (diff)
downloadsystray-f5df9ef609c410eddc16af7681008f4ea58fe49c.tar.bz2
keep a slice with the visible items to fix positioning bug
in windows, Hide() destroys a menuItem. this has problems when later we try to Show() it and end up using the original menuID, for instance if we did hide several elements in a row: if we insert the element in the original position, it will end up inserted past some other elements that were intended to be placed after the items that were hidden. by keeping a slice where we insert and delete the id of the elements that are shown, we can sort this slice and take the index of a given element as the correct index in which we want to insert the menuItem when calling Show() again. - Resolves: #72
Diffstat (limited to 'example')
0 files changed, 0 insertions, 0 deletions