-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: should wait template in paddock scene
- Loading branch information
1 parent
0dc8cc0
commit cd10e97
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd10e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually this is not required either as
_enter()
already waited for it... But no harm either ¯_(ツ)_/¯cd10e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_enter is not called by choose_running_style, this two method has no guaranteed order
cd10e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait what does
auto-derby/auto_derby/single_mode/commands/race.py
Line 20 in f735486
cd10e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a public method, not only for one specific line.
_enter
will not be called if ctx.scene.name() == "paddock"_enter
andchoose_running_style
and forgot to close the menucd10e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK thanks.
I don't think 1) will ever happen, and 2) is some sort of racing between the user and the script which is impossible to fix anyway. But yes this is an improvement.