deleted bookmarked description in bookmark list
System dynamics program with additional features for economics
Brought to you by:
hpcoder,
profstevekeen
Ha - yes it wasn't designed that way, but I suppose it makes sense for the book mark to disappear when its defining object does.
This proved a little tricky to solve. It was easy enough to place code to update the backend bookmarks list in group remove/add item methods, and also openGroupInCanvas. The problem was getting that state to reflect in the menu, since there doesn't appear to be any way of attaching code to a menu to be run before it is posted (unlike Tk's -postcommand option). Instead, I had to add another callback which executes BookmarkManager.updateBookmarkList() whenever the bookmarks list is changed on the backend.