mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-23 16:17:40 +00:00
Merge pull request #10014 from keymanapp/fix/web/unwanted-banner-retoggle
fix(web): accidental suggestion-banner retoggle when disabling predictions
This commit is contained in:
commit
ef901a53d0
1 changed files with 3 additions and 1 deletions
|
|
@ -425,7 +425,9 @@ export default class LanguageProcessor extends EventEmitter<LanguageProcessorEve
|
|||
this._state = state;
|
||||
this.emit('statechange', state);
|
||||
|
||||
if(this.isConfigured) {
|
||||
// Only signal `'configured'` for a previously-loaded model if we're turning
|
||||
// things back on; don't send it if deactivated!
|
||||
if(flag && this.isConfigured) {
|
||||
this._state = 'configured';
|
||||
this.emit('statechange', 'configured');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue