Skip to content

Commit

Permalink
Go back to Feed.pause/resume(), new flume APIs coming later
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Jan 9, 2023
1 parent 7e3c832 commit 9722aad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions piker/ui/_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,15 +916,15 @@ def resume_all_feeds(self):
try:
for feed in self._feeds.values():
for flume in feed.flumes.values():
self.linked.godwidget._root_n.start_soon(flume.resume)
self.linked.godwidget._root_n.start_soon(feed.resume)
except RuntimeError:
# TODO: cancel the qtractor runtime here?
raise

def pause_all_feeds(self):
for feed in self._feeds.values():
for flume in feed.flumes.values():
self.linked.godwidget._root_n.start_soon(flume.pause)
self.linked.godwidget._root_n.start_soon(feed.pause)

@property
def view(self) -> ChartView:
Expand Down

0 comments on commit 9722aad

Please sign in to comment.