-
Notifications
You must be signed in to change notification settings - Fork 243
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
Timezone change not accepted on cancel, fixes #3093 #677
base: master
Are you sure you want to change the base?
Conversation
No, this is not the correct fix. All of our My Settings control panels must make immediate and permanent changes where possible. Cancel X button is to revert the change. Check tick button is to close the panel, but if a restart is required offer to restart now, restart later, or revert the change. Please try again. The fix will be to;
Do you want to open a new pull request, or force push? |
@quozl , Thanks for the review.
I was not knowing about this, hence I thought setting the settings only once and on the final step made more sense. Nevertheless, I have made the changes. Now the initial timezone is stored at the setup and set when "cancel' is pressed. :) I would like to force push onto this PR itself. So, if the edit is fine then I will force push for a single commit. |
@ManashRaja, thanks. Reviewed. The variable For background information; the reasons for immediate settings commit rather than the older two-step settings commit were;
Please review your commit message. Force push when ready. |
The issue was solved by storing the initial timezone in a local variable while loading the Control Panel section and setting this initial timezone in the 'undo' method which is called whenever "Cancel" is pressed.
Interesting! Commit message reviewed and force pushed. |
Reviewed. Looks fine. Thanks. |
@samdroid-apps please check. |
Sorry Manash, I'm only on my phone now. I'll merege it in the coming week, when I get my laptop back on the net. |
As per your convenience. :) Have a good day. |
ping @samdroid-apps |
I tested this, but the "cancel" button stopped working for me. Log:
|
Testing right now. I will look closely at the error that Sam reported. |
Okay. I think that the error that Sam reported is due to not selecting a timezone before. |
Besides that, flake8 returns 0 errors and everything else works. Good job |
@i5o Thanks for the review. Okay, I would add a conditional check. |
@ManashRaja, will you be updating the patch or may I do the same, Thanks |
The issue was solved by not saving the changes on selection change
but on a 'final_apply' function that would be called by only those
options in restart menu that is supposed to save the settings ('Later'
and 'Restart Now').