-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add log-in button to preferences screen #2994
Add log-in button to preferences screen #2994
Conversation
Hi Lucas, The change itself looks well written. A couple of comments on adding a log-in button to that screen:
@david-allison @mikehardy I probably should have mentioned this in the past |
qt/aqt/forms/preferences.ui
Outdated
</sizepolicy> | ||
</property> | ||
<property name="text"> | ||
<string notr="true">LOGIN</string> |
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.
Instead of setting the translation in the Python code, you can name it here instead, eg sync_log_in_button.
AFAIK, the sole reason for logging in is sync, but it still might desirable to have the ability to log in without immediately initiating a sync (for the same reason it's useful to be able to opt out of automatic sync on profile open/close). An explicit "log in" button also might be more intuitive for new users, as it might not be immediately obvious that logging in is directly associated with sync. Perhaps, upon successful login (from the prefs screen), there could be a "sync now?" dialog. |
As of 2.17, logging in via the onboarding process initiates a (download) sync. I'd support the above as a UX enhancement |
Your code looks good, but I'm afraid I'm not so fond of syncing being started while the preferences screen is open, as changes from other devices will be lost if the user saves their preferences after syncing. Could we either change the message to "Save changes and sync now?" + automatically save+close the dialog first, or change it from a prompt to a suggestion to the user to sync after saving? |
Thanks for your work on this Lucas, I think it's a nice addition. |
This changes the AnkiWeb Account box on the preferences screen when the user is not logged in.
Before:


After:
Resolves #2990