This commit is contained in:
2026-04-03 04:41:59 -03:00
parent b6a98f1fb7
commit 68c640e3ab
2 changed files with 59 additions and 5 deletions

View File

@@ -91,6 +91,8 @@ class ChtWindow(Adw.ApplicationWindow):
# Cross-panel exclusion: selecting frame clears transcript and vice versa
self._frames_panel.connect("selection-changed", self._on_frame_selection_changed)
self._transcript_panel.connect("selection-changed", self._on_transcript_selection_changed)
self._transcript_panel.connect("min-chunk-changed", self._on_min_chunk_changed)
self._transcript_panel.connect("lines-per-group-changed", self._on_lines_per_group_changed)
log.info("Window initialized")
GLib.idle_add(self._check_agent_auth)
@@ -124,6 +126,14 @@ class ChtWindow(Adw.ApplicationWindow):
if self._stream_mgr:
self._stream_mgr.scene_threshold = val
def _on_min_chunk_changed(self, panel, val):
import cht.config
cht.config.TRANSCRIBE_MIN_CHUNK_S = val
def _on_lines_per_group_changed(self, panel, val):
import cht.config
cht.config.TRANSCRIBE_LINES_PER_GROUP = val
# -- Session loading --
def _on_load_session_clicked(self, button):