mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 04:55:42 +09:00
fix(app): clear stuck spellcheck reload banner (#2107)
This commit is contained in:
1 parent
b1f7c78c7e
commit
3cc7b9050c
1 file changed
+2
-3
@@ -56,9 +56,8 @@ class Spellcheck {
|
||||
get reloadRequired(): boolean {
|
||||
if (!this.providerActivationEngine) return false;
|
||||
const isLinuxDesktop = getElectronAPI()?.platform === 'linux';
|
||||
const wasHunspell = this.providerActivationEngine === 'hunspell' || this.providerActivationEngine === 'auto';
|
||||
const isHunspell =
|
||||
this.engine === 'hunspell' || this.engine === 'auto' || (isLinuxDesktop && this.engine === 'system');
|
||||
const wasHunspell = this.providerActivationEngine === 'hunspell';
|
||||
const isHunspell = isLinuxDesktop ? true : this.engine === 'hunspell';
|
||||
return wasHunspell !== isHunspell;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user