Skip to content

Commit 1120263

Browse files
committed
✨ 开始结束时间QoL特性增加,输入时自动除去两侧空格
1 parent 8e2193c commit 1120263

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/SimpleCutMainFrame.py

Lines changed: 1 addition & 1 deletion
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.1"
19+
VERSION = "0.3.2"
2020

2121

2222
class FileDropTarget(wx.FileDropTarget):

src/model.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,14 @@ def end_time(self, time_string: str):
3434
@staticmethod
3535
def format_time(time_string: str) -> str:
3636
# 一些提升体验的小更改
37+
# 除去两侧空格
38+
time_string = time_string.strip()
39+
3740
# 将空格替换为 ":"
3841
# 将全角 “:” 替换为半角 “:”
3942
time_string = str.replace(time_string, " ", ":")
4043
time_string = str.replace(time_string, ":", ":")
44+
4145
return time_string
4246

4347

0 commit comments

Comments
 (0)