Ensure site authorization toggle is saved (#842)

This commit is contained in:
Jaco 2021-09-27 17:33:33 +03:00 committed by GitHub
parent 0992b6c763
commit 6e0992ac46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -1,5 +1,12 @@
# CHANGELOG
## master
Changes:
- Ensure site authorization toggle is saved
## 0.40.3 Sep 18, 2021
**Important** Not published to the stores, aligns with latest released packages.

View File

@ -293,9 +293,8 @@ export default class State {
assert(entry, `The source ${url} is not known`);
const newAllowState = !entry.isAllowed;
this.#authUrls[url].isAllowed = newAllowState;
this.#authUrls[url].isAllowed = !entry.isAllowed;
this.saveCurrentAuthList();
return this.#authUrls;
}