-
Notifications
You must be signed in to change notification settings - Fork 80
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
fix: Falsy setting values now correctly initialize. #408
Conversation
forgot style
forgot style fix: falsy values now correctly initialize Merge branch 'master' of https://github.com/SamDunlap/rikaikun
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.
Thanks a lot for this fix.
Don't worry too much about the rebase not working (perhaps the push failed since you didn't pass --force
as required for rebases) when I merge the PR it will be sqashed to one.
@all-contributors please add @SamDunlap for code |
I've put up a pull request to add @SamDunlap! 🎉 |
Adds @SamDunlap as a contributor for code. This was requested by melink14 [in this comment](#408 (comment))
## [1.1.0](v1.0.0...v1.1.0) (2021-05-10) ### Features * **dict:** Update dictionaries ([#451](#451)) ([97e6306](97e6306)) * **dict:** Update dictionaries to latest versions. ([#469](#469)) ([96a6032](96a6032)) ### Bug Fixes * Change manifest.json description to be more descriptive. ([#268](#268)) ([5fb116c](5fb116c)), closes [#245](#245) * Falsy setting values now correctly initialize. ([#408](#408)) ([327eecd](327eecd)), closes [#346](#346) * Migrate `onSelectionChanged` to `onActivated` ([#461](#461)) ([d8a0a9d](d8a0a9d)), closes [#153](#153) * Remove unneeded tabs permission from manifest. ([#266](#266)) ([d529e62](d529e62)), closes [#152](#152) * Reset badge text to empty on extension startup ([#462](#462)) ([b4afd3f](b4afd3f)), closes [#82](#82) * Update manifest.json to allow rikaikun to work in srcdoc iframes. ([#411](#411)) ([093824b](093824b)), closes [#410](#410)
## [1.1.0](v1.0.0...v1.1.0) (2021-05-11) ### Features * **dict:** Update dictionaries ([#451](#451)) ([97e6306](97e6306)) * **dict:** Update dictionaries to latest versions. ([#469](#469)) ([96a6032](96a6032)) ### Bug Fixes * Change manifest.json description to be more descriptive. ([#268](#268)) ([5fb116c](5fb116c)), closes [#245](#245) * Falsy setting values now correctly initialize. ([#408](#408)) ([327eecd](327eecd)), closes [#346](#346) * Migrate `onSelectionChanged` to `onActivated` ([#461](#461)) ([d8a0a9d](d8a0a9d)), closes [#153](#153) * Remove unneeded tabs permission from manifest. ([#266](#266)) ([d529e62](d529e62)), closes [#152](#152) * Reset badge text to empty on extension startup ([#462](#462)) ([b4afd3f](b4afd3f)), closes [#82](#82) * Update manifest.json to allow rikaikun to work in srcdoc iframes. ([#411](#411)) ([093824b](093824b)), closes [#410](#410)
## [1.1.0](v1.0.0...v1.1.0) (2021-05-11) ### Features * **dict:** Update dictionaries ([#451](#451)) ([97e6306](97e6306)) * **dict:** Update dictionaries to latest versions. ([#469](#469)) ([96a6032](96a6032)) ### Bug Fixes * Change manifest.json description to be more descriptive. ([#268](#268)) ([5fb116c](5fb116c)), closes [#245](#245) * Falsy setting values now correctly initialize. ([#408](#408)) ([327eecd](327eecd)), closes [#346](#346) * Migrate `onSelectionChanged` to `onActivated` ([#461](#461)) ([d8a0a9d](d8a0a9d)), closes [#153](#153) * Remove unneeded tabs permission from manifest. ([#266](#266)) ([d529e62](d529e62)), closes [#152](#152) * Reset badge text to empty on extension startup ([#462](#462)) ([b4afd3f](b4afd3f)), closes [#82](#82) * Update manifest.json to allow rikaikun to work in srcdoc iframes. ([#411](#411)) ([093824b](093824b)), closes [#410](#410)
## [1.1.0](v1.0.0...v1.1.0) (2021-05-11) ### Features * **dict:** Update dictionaries ([#451](#451)) ([97e6306](97e6306)) * **dict:** Update dictionaries to latest versions. ([#469](#469)) ([96a6032](96a6032)) ### Bug Fixes * **manifest:** Edit the manifest description to fit under the character limit ([de5a21a](de5a21a)) * Change manifest.json description to be more descriptive. ([#268](#268)) ([5fb116c](5fb116c)), closes [#245](#245) * Falsy setting values now correctly initialize. ([#408](#408)) ([327eecd](327eecd)), closes [#346](#346) * Migrate `onSelectionChanged` to `onActivated` ([#461](#461)) ([d8a0a9d](d8a0a9d)), closes [#153](#153) * Remove unneeded tabs permission from manifest. ([#266](#266)) ([d529e62](d529e62)), closes [#152](#152) * Reset badge text to empty on extension startup ([#462](#462)) ([b4afd3f](b4afd3f)), closes [#82](#82) * Update manifest.json to allow rikaikun to work in srcdoc iframes. ([#411](#411)) ([093824b](093824b)), closes [#410](#410)
🎉 This PR is included in version 1.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I changed the logic that checks whether or not initial options values exist and whether or not they are true, to only check for whether or not they exist already. This way, if a false value for a checkbox is not mistaken for a missing setting value.
Solves issue #346.
--I attempted to rebase these changes as I initially committed without running the linter and I wanted to follow the "one commit per merge req" rule, however this was not recorded by Github.