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

Store user online state in config for next launch #26337

Merged
merged 3 commits into from
Jan 3, 2024

Conversation

bdach
Copy link
Collaborator

@bdach bdach commented Jan 2, 2024

Closes remainder of #12635.

Stored status is reset on logout, so that it doesn't persist across multiple users logging in on one machine.

No tests because APIAccess is not directly testable, so I'd have to implement this logic on DummyAPIAccess, in order to test a test component (i.e. pointless).

bdach added 3 commits January 2, 2024 14:04
It was sort of assuming that the user can't be anything but online when
opening, thus forcing the status to online via the immediately-run value
change callback.
@peppy peppy self-requested a review January 3, 2024 04:17
@peppy peppy merged commit 18820e6 into ppy:master Jan 3, 2024
15 of 17 checks passed
@bdach bdach deleted the persist-user-status-to-config branch January 3, 2024 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants