Skip to content
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

Updater for websockets #3581

Merged
merged 2 commits into from
Feb 19, 2019
Merged

Conversation

basicer
Copy link
Member

@basicer basicer commented Feb 17, 2019

Related Ticket(s)

Short roundup of the initial problem

  • We need to force update to get users to switch to the websocket port

What will change with this Pull Request?

  • The server updater won't erase passwords
  • The server updater is triggered on client update.

Copy link
Member

@tooomm tooomm left a comment

Choose a reason for hiding this comment

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

Seems to work as intended in the client.

(Code review pending)


for (int i = 0; i < size; i++) {
if (serv == getValue(QString("server%1").arg(i), "server", "server_details").toString()) {
setValue(port, QString("port%1").arg(i), "server", "server_details");
Copy link
Member

Choose a reason for hiding this comment

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

I understand why this is copied but being inconsistent on one function having the port be optional while the other doesn't just irks me.

@basicer basicer merged commit d519f99 into Cockatrice:master Feb 19, 2019
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.

None yet

4 participants