Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
Kajongg
Commits
86d5a9c9
Commit
86d5a9c9
authored
May 06, 2021
by
Wolfgang Rohdewald
Browse files
code refactoring: use local var autoPlaying only if really needed
parent
7514a4fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scene.py
View file @
86d5a9c9
...
...
@@ -359,11 +359,11 @@ class PlayingScene(GameScene):
return
result
if
not
self
.
game
:
return
succeed
(
True
)
autoPlaying
=
self
.
mainWindow
.
actionAutoPlay
.
isChecked
()
self
.
mainWindow
.
actionAutoPlay
.
setChecked
(
False
)
if
self
.
game
.
finished
():
self
.
game
=
None
return
succeed
(
True
)
autoPlaying
=
self
.
mainWindow
.
actionAutoPlay
.
isChecked
()
return
QuestionYesNo
(
i18n
(
"Do you really want to abort this game?"
),
always
=
True
).
addCallback
(
gotAnswer
,
autoPlaying
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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