Index: channels/_generic.py ================================================================== --- channels/_generic.py +++ channels/_generic.py @@ -330,11 +330,16 @@ # reload current stream from web directory def reload(self): self.load(self.current, force=1) def switch(self): self.load(self.current, force=0) - + + # update streams pane if currently selected (used by bookmarks.links channel) + def reload_if_current(self, category): + if self.current == category: + self.reload() + # display .current category, once notebook/channel tab is first opened def first_show(self): __print__(dbg.PROC, "first_show ", self.module, self.shown) Index: channels/history.py ================================================================== --- channels/history.py +++ channels/history.py @@ -48,10 +48,11 @@ # keep reference to main window self.bm = parent.channels["bookmarks"] # create category self.bm.add_category("history"); + self.bm.reload_if_current(self.module) # hook up to .play event parent.hooks["play"].append(self.queue) @@ -73,8 +74,10 @@ while max > 0 and len(hist) > max: hist.pop() # update store self.bm.save() - #if self.bm.current == "history": - # self.bm.load("history") + self.bm.reload_if_current(self.module) + + + Index: channels/links.py ================================================================== --- channels/links.py +++ channels/links.py @@ -104,6 +104,7 @@ }) # add to bookmarks parent.bookmarks.streams[self.module] = self.streams - + # redraw category + parent.bookmarks.reload_if_current(self.module)