-
Notifications
You must be signed in to change notification settings - Fork 2
Adding timer format #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Crystalwarrior
left a comment
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.
Good stuff, just parse the arguments in packet_distribution rather than courtroom
src/courtroom.cpp
Outdated
| ui_rp_clock->show(); | ||
| } | ||
|
|
||
| void Courtroom::format_clock(QStringList time_format) { |
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.
Why is this function responsible for parsing the arguments? Pass the arguments here and handle the QStringList unpacking in packet_distribution.cpp
src/packet_distribution.cpp
Outdated
| } | ||
| else if (header == "TF") { | ||
| if (courtroom_constructed && f_contents.size() > 1) { | ||
| QStringList time_format = f_contents; |
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.
Break this up into arguments and pass it to format_clock instead of doing it in format_clock
|
Done! |
Crystalwarrior
left a comment
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.
Looks good!
No description provided.