-
Notifications
You must be signed in to change notification settings - Fork 100
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
Allow queueing dictionary update & delete together #1561
base: master
Are you sure you want to change the base?
Conversation
/** @type {Promise<void>} */ | ||
const importPromise = new Promise((resolve) => { | ||
this._settingsController.trigger('importDictionaryFromUrl', {url: downloadUrl, profilesDictionarySettings, onImportDone: resolve}); | ||
}) |
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.
I don't think this is the correct way to do this but this is the only way I can think of to await an event trigger.
Ready for review. |
6579cba
to
4222e7b
Compare
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.
Didn't test this but code looks sensible
Closes #1557
When enqueue a dictionary, hide its update button.Also refactor dictionary update and delete behavior, only allow 1 queue to run at a time.- If update queue is running then disable all delete buttons.- If delete queue is running then hide all update buttons.