mirror of
https://github.com/YaoFANGUK/video-subtitle-remover.git
synced 2026-05-07 01:57:28 +08:00
图片模式锁定LAMA算法、未选区时全屏处理
- 加载图片时自动锁定 inpaint 模式为 LAMA 并禁用下拉框 - 加载视频时恢复用户原始的 inpaint 模式选择 - 未选择字幕区域时自动使用全屏区域,不再报错失败 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -65,6 +65,10 @@ class SettingInterface(QtWidgets.QVBoxLayout):
|
||||
# 添加一些空间
|
||||
self.addStretch(1)
|
||||
|
||||
def set_inpaint_mode_enabled(self, enabled):
|
||||
"""启用或禁用 inpaint 模式下拉框"""
|
||||
self.inpaint_mode_combo.comboBox.setEnabled(enabled)
|
||||
|
||||
def reset_setting(self):
|
||||
"""重置所有设置为默认值"""
|
||||
# 这里需要实现重置逻辑
|
||||
|
||||
Reference in New Issue
Block a user