Skip to content

Conversation

@EstatoDeviato
Copy link
Collaborator

No description provided.

Copy link
Owner

@Crystalwarrior Crystalwarrior left a 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

ui_rp_clock->show();
}

void Courtroom::format_clock(QStringList time_format) {
Copy link
Owner

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

}
else if (header == "TF") {
if (courtroom_constructed && f_contents.size() > 1) {
QStringList time_format = f_contents;
Copy link
Owner

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

@EstatoDeviato
Copy link
Collaborator Author

Done!
Now it is unpacked in packet_distribution file

Copy link
Owner

@Crystalwarrior Crystalwarrior left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@Crystalwarrior Crystalwarrior merged commit 5cdf2c9 into Crystalwarrior:master May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants