tweaks
This commit is contained in:
@@ -99,7 +99,20 @@ class MonitorWidget(Gtk.Box):
|
||||
elif self._review_player:
|
||||
self._review_player.screenshot(path)
|
||||
|
||||
def reset(self):
|
||||
"""Reset for session transition — keep players alive, just unload content."""
|
||||
log.info("Resetting monitor")
|
||||
self._live_source_url = None
|
||||
self._recording_path = None
|
||||
self._live_loaded = False
|
||||
if self._live_player:
|
||||
self._live_player.command("stop")
|
||||
if self._review_player:
|
||||
self._review_player.command("stop")
|
||||
self._stack.set_visible_child_name("live")
|
||||
|
||||
def stop(self):
|
||||
"""Full teardown — terminates mpv players. Only call on app exit."""
|
||||
log.info("Stopping monitor")
|
||||
if self._live_player:
|
||||
self._live_player.terminate()
|
||||
|
||||
Reference in New Issue
Block a user