Skip to content

Commit 8e2193c

Browse files
committed
🐛 更新版本至0.3.1,优化视频序列sequence变量访问错误
1 parent 4427f97 commit 8e2193c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/SimpleCutMainFrame.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
from src.model import VideoSequenceModel, VideoModel
1818

19-
VERSION = "0.3.0"
19+
VERSION = "0.3.1"
2020

2121

2222
class FileDropTarget(wx.FileDropTarget):
@@ -108,7 +108,7 @@ def RemoveBtnOnClick(self, event):
108108
return # 如果没有选中
109109

110110
if index >= len(self.video_sequence):
111-
return # 如果超出范围
111+
return # 如果超出范围
112112

113113
self.video_sequence.pop_video(index)
114114

@@ -203,7 +203,7 @@ def export_video_file(self, export_amix, export_mbps, export_name):
203203
filter_complex_string = '-filter_complex '
204204
filter_complex_filters: list[str] = []
205205
concat_inputs: list[str] = []
206-
for index, item in enumerate(self.video_sequence):
206+
for index, item in enumerate(self.video_sequence.video_list):
207207
no = index
208208
start_time = item.start_time
209209
end_time = item.end_time
@@ -338,7 +338,7 @@ def load_sequence_model(self, sequence: VideoSequenceModel):
338338
把物品列表上的所有物品载入到用户界面的控件上
339339
:return:
340340
"""
341-
for index, item in enumerate(sequence):
341+
for index, item in enumerate(sequence.video_list):
342342
self.load_video_model_item(item, index)
343343

344344
def on_export_done(self, msg: ExportMessage):

0 commit comments

Comments
 (0)