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

Address macOS issue where right-clicking a username in the main chat #4523

Merged
merged 6 commits into from
Jan 16, 2022

Conversation

ZeldaZach
Copy link
Member

…(or game chat) areas would pop up a seemingly empty user profile. This is because the resize event is overridden and doesn't actually attempt to resize based on the size hint of the dialog. Now that we're explicit with the call, this resize should be forced and have comparable results to popping up user profile from the user list.

Related Ticket(s)

  • Fixes #IssueNumber

Before:
Screen Shot 2022-01-15 at 1 27 54 AM

After:
Screen Shot 2022-01-15 at 1 25 36 AM

…(or game chat) areas would pop up a seemingly empty user profile. This is because the resize event is overridden and doesn't actually attempt to resize based on the size hint of the dialog. Now that we're explicit with the call, this resize should be forced and have comparable results to popping up user profile from the user list.
@ebbit1q
Copy link
Member

ebbit1q commented Jan 15, 2022

wait, why do we do something like assigning SIXTY as a constant, like what

const qint64 DAYS_IN_A_YEAR = 365;
const quint64 SIXTY = 60;
const quint64 HOURS_IN_A_DAY = 24;
const quint64 DAYS_IN_A_YEAR = 365;
Copy link
Member

Choose a reason for hiding this comment

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

wait, why do we do something like assigning SIXTY as a constant, like what

I assume the intention was to name it MINUTES_IN_AN_HOUR when looking at the other constant names.

@ebbit1q
Copy link
Member

ebbit1q commented Jan 15, 2022

I made a pr that will address this #4526

ebbit1q and others added 2 commits January 16, 2022 16:44
* use datetime for calculating account age

make translating easier by using tr multiples
automatically account for leap days
@ZeldaZach ZeldaZach merged commit d61c604 into master Jan 16, 2022
@ZeldaZach ZeldaZach deleted the fix_annoying_mac_issue branch January 16, 2022 21:51
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

3 participants