feat(gui): add an Apply button for live preview of settings

Split applying settings from closing the dialog, so appearance changes
(opacity, font size, line counts) can be previewed without dismissing it.
The caption window now listens to settingsApplied and updates immediately;
only model, language or capture-device changes restart the ASR backend.

设置对话框新增「应用」按钮:应用设置但不关闭对话框,方便实时预览(不透明度、
字号等立刻可见)。字幕窗改为监听 settingsApplied 即时更新;只有模型/识别语言/
采集设备变化才重启识别后端,外观调整不会打断正在进行的转写。
This commit is contained in:
blumia committed 2026-10-12 17:18:16 +08:00
1 parent 0fa0bcb44a
commit 370c869ad0
4 files changed
+68 -19

No files matched your search

+10
View File
@@ -63,6 +63,16 @@ IAsr(src/core/iasr.h)
> 同步/自旋开销会让它更慢(8 线程比 1 线程慢 2.6 倍、CPU 高 28 倍)。所以适配器里固定
> `threads = 1`。
## 设置对话框
三个页签(模型 / 显示 / 高级),底部三个按钮:
- **应用**:应用设置但**不关闭**对话框,方便实时预览(改不透明度、字号时会立刻看到效果);
- **取消**:放弃本次改动;
- **确定**:应用并关闭。
只有**模型 / 识别语言 / 采集设备**变化才会重启识别后端;透明度、字号、行数、位置这类外观改动是即时生效的,不会打断正在进行的转写。
## 采集设备选择
默认跟随系统默认输出;也可以在设置里指定某个输出设备(`--list-devices` 可列出):