From b4fd7c2006c9acc00a532e558913b261c767b33a Mon Sep 17 00:00:00 2001 From: ihmily <114978440+ihmily@users.noreply.github.com> Date: Fri, 22 Aug 2025 16:54:48 +0800 Subject: [PATCH] fix: synchronized recording format --- app/ui/components/business/recording_dialog.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/ui/components/business/recording_dialog.py b/app/ui/components/business/recording_dialog.py index 0a425ed..aa538ca 100644 --- a/app/ui/components/business/recording_dialog.py +++ b/app/ui/components/business/recording_dialog.py @@ -76,9 +76,14 @@ class RecordingDialog: value=default_record_type, on_change=update_format_options ) + + if default_record_type == "video": + record_formats = VideoFormat.get_formats() + else: + record_formats = AudioFormat.get_formats() record_format_field = ft.Dropdown( label=self._["select_record_format"], - options=[ft.dropdown.Option(i) for i in VideoFormat.get_formats()], + options=[ft.dropdown.Option(i) for i in record_formats], border_radius=5, filled=False, value=default_record_format,