Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
accessibility_movie_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵心治
accessibility_movie_2
Commits
d2fb7787
Commit
d2fb7787
authored
Nov 05, 2022
by
xuanweiace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
4f04de43
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
main_window.py
main_window.py
+0
-0
management.py
management.py
+1
-0
operation_dialog.py
operation_dialog.py
+2
-1
No files found.
main_window.py
View file @
d2fb7787
This diff is collapsed.
Click to expand it.
management.py
View file @
d2fb7787
...
@@ -249,6 +249,7 @@ class ProjectContext:
...
@@ -249,6 +249,7 @@ class ProjectContext:
def
history_pop
(
self
)
->
OperateRecord
:
def
history_pop
(
self
)
->
OperateRecord
:
if
len
(
self
.
history_records
)
==
0
:
if
len
(
self
.
history_records
)
==
0
:
return
None
return
None
print
(
f
"[history_pop] {self.history_records}, {self.records_pos}"
)
self
.
records_pos
-=
1
self
.
records_pos
-=
1
return
self
.
history_records
[
self
.
records_pos
]
return
self
.
history_records
[
self
.
records_pos
]
...
...
operation_dialog.py
View file @
d2fb7787
...
@@ -113,7 +113,8 @@ class Operation_Dialog(QDialog, Ui_Dialog):
...
@@ -113,7 +113,8 @@ class Operation_Dialog(QDialog, Ui_Dialog):
# 这些是只有【modify】才需要检测的
# 这些是只有【modify】才需要检测的
if
self
.
comboBox_2
.
currentText
()
==
"修改一行"
:
if
self
.
comboBox_2
.
currentText
()
==
"修改一行"
:
try
:
try
:
suggest
=
self
.
mainWindow
.
projectContext
.
all_elements
[
row_number
]
.
suggest
suggest
=
self
.
mainWindow
.
projectContext
.
all_elements
[
row_number
-
1
]
.
suggest
print
(
"suggest:"
,
suggest
)
# 如果当前行是旁白
# 如果当前行是旁白
if
suggest
is
not
None
and
"插入旁白"
in
suggest
:
if
suggest
is
not
None
and
"插入旁白"
in
suggest
:
assert
self
.
comboBox
.
currentText
()
==
"旁白"
assert
self
.
comboBox
.
currentText
()
==
"旁白"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment