mirror of
https://github.com/ihmily/StreamCap.git
synced 2026-05-07 22:15:58 +08:00
fix: synchronized recording format
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user