第一步优化勾选功能

This commit is contained in:
27942
2026-02-04 23:53:01 +08:00
parent 8bcd4c1347
commit 24692ab0f5
11 changed files with 12 additions and 11 deletions

View File

@@ -384,18 +384,19 @@ class MainWindow(QMainWindow):
self.update_status_label.setStyleSheet("color: #666; font-size: 10px;")
update_row.addWidget(self.update_status_label)
update_row.addStretch()
self.batch_upload_checkbox = CheckBox("批量上传")
self.batch_upload_checkbox = CheckBox("批量上传(如果文件夹中有多个视频,将使用批量上传模式)")
self.batch_upload_checkbox.setChecked(False)
self.batch_upload_checkbox.setToolTip("勾选后同一多多ID的多个视频将批量上传按序号顺序处理")
update_row.addWidget(self.batch_upload_checkbox)
# 最大批量数输入框
batch_limit_label = QLabel("最大批量数:")
batch_limit_label.setStyleSheet("color: #666; font-size: 10px; margin-left: 8px;")
# 添加间隔
update_row.addSpacing(20)
# 单次上限数输入框
batch_limit_label = QLabel("单次上限数:")
update_row.addWidget(batch_limit_label)
self.batch_limit_input = LineEdit()
self.batch_limit_input.setPlaceholderText("5")
self.batch_limit_input.setText("5")
self.batch_limit_input.setFixedWidth(50)
self.batch_limit_input.setAlignment(Qt.AlignCenter)
self.batch_limit_input.setToolTip("每次批量上传的最大视频数量,超过则分批上传")
update_row.addWidget(self.batch_limit_input)
update_row_widget = QWidget()
@@ -3465,8 +3466,8 @@ class MainWindow(QMainWindow):
(it['config_index'] for it in items if it['config'].get('序号') == f_index),
None)
if matching_idx is not None:
self._update_table_status(matching_idx, "已跳过(时过期)", is_config_index=True)
self.configs[matching_idx]['情况'] = '已跳过(时过期)'
self._update_table_status(matching_idx, "已跳过(时过期)", is_config_index=True)
self.configs[matching_idx]['情况'] = '已跳过(时过期)'
j += 1
continue
video_batch.append(f)
@@ -3518,8 +3519,8 @@ class MainWindow(QMainWindow):
(it['config_index'] for it in items if it['config'].get('序号') == vid_index),
None)
if matching_idx is not None:
self._update_table_status(matching_idx, "已跳过(时过期)", is_config_index=True)
self.configs[matching_idx]['情况'] = '已跳过(时过期)'
self._update_table_status(matching_idx, "已跳过(时过期)", is_config_index=True)
self.configs[matching_idx]['情况'] = '已跳过(时过期)'
i += 1
continue
@@ -3549,8 +3550,8 @@ class MainWindow(QMainWindow):
(it['config_index'] for it in items if it['config'].get('序号') == f_idx),
None)
if matching_idx is not None:
self._update_table_status(matching_idx, "已跳过(时过期)", is_config_index=True)
self.configs[matching_idx]['情况'] = '已跳过(时过期)'
self._update_table_status(matching_idx, "已跳过(时过期)", is_config_index=True)
self.configs[matching_idx]['情况'] = '已跳过(时过期)'
i += 1
continue

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.