Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions app/ui/components/business/recording_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,18 +320,25 @@ async def on_toggle_recording(self, recording: Recording):
await self.app.snack_bar.show_snack_bar(self._["stop_record_tip"])
else:
if recording.monitor_status:
# 修复:手动开始录制时,临时关闭"仅通知不录制",确保真正启动录制
original_only_notify = recording.only_notify_no_record
recording.only_notify_no_record = False
await self.app.record_manager.check_if_live(recording)
if recording.is_live:
self.app.record_manager.start_update(recording)
# 恢复原始设置
recording.only_notify_no_record = original_only_notify
if recording.is_live and recording.is_recording:
await self.app.snack_bar.show_snack_bar(self._["pre_record_tip"], bgcolor=ft.Colors.PRIMARY)
elif recording.is_live:
# 检测到直播但录制未启动成功
await self.app.snack_bar.show_snack_bar(self._["is_not_live_tip"])
else:
await self.app.snack_bar.show_snack_bar(self._["is_not_live_tip"])
else:
await self.app.snack_bar.show_snack_bar(self._["please_start_monitor_tip"])

await self.update_card(recording)
self.app.page.pubsub.send_others_on_topic("update", recording)


async def on_delete_recording(self, recording: Recording):
"""Delete a recording from the list and update UI."""
if recording:
Expand Down
Loading