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

save options after updating them #284

Merged
merged 2 commits into from
Oct 24, 2023

Conversation

praschke
Copy link
Collaborator

without saving, the options will be updated every time the background restarts, until any settings are modified or text scanning is toggled. for _updateVersion21, this means the welcome page will open repeatedly to show the same warning.

_optionsUtil.save() is only called in _saveOptions, which is only called through

  • _onApiSetAllSettings
  • _onApiModifySettings
  • _onCommandToggleTextScanning

it should be safe to simply save settings after updating them.

_optionsUtil.save() is only called in _saveOptions, which is only
called through

- _onApiSetAllSettings
- _onApiModifySettings
- _onCommandToggleTextScanning

it should be safe to simply save settings after updating them.

without saving, the options will be updated every time the background
restarts, until any settings are modified or text scanning is
toggled. for _updateVersion21, this means the welcome page will open
repeatedly to show the same warning.
@praschke praschke requested a review from a team as a code owner October 23, 2023 20:30
@github-actions
Copy link

github-actions bot commented Oct 23, 2023

✔️ No visual differences introduced by this PR.

View Playwright Report (note: open the "playwright-report" artifact)

@djahandarie djahandarie added the kind/bug The issue or PR is regarding a bug label Oct 24, 2023
@djahandarie djahandarie added this pull request to the merge queue Oct 24, 2023
Merged via the queue into themoeway:master with commit d392c78 Oct 24, 2023
5 checks passed
@praschke praschke deleted the update-options-once branch November 7, 2023 20:27
@themoeway-bot themoeway-bot mentioned this pull request Mar 5, 2023
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug The issue or PR is regarding a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants