mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +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 {
|
get reloadRequired(): boolean {
|
||||||
if (!this.providerActivationEngine) return false;
|
if (!this.providerActivationEngine) return false;
|
||||||
const isLinuxDesktop = getElectronAPI()?.platform === 'linux';
|
const isLinuxDesktop = getElectronAPI()?.platform === 'linux';
|
||||||
const wasHunspell = this.providerActivationEngine === 'hunspell' || this.providerActivationEngine === 'auto';
|
const wasHunspell = this.providerActivationEngine === 'hunspell';
|
||||||
const isHunspell =
|
const isHunspell = isLinuxDesktop ? true : this.engine === 'hunspell';
|
||||||
this.engine === 'hunspell' || this.engine === 'auto' || (isLinuxDesktop && this.engine === 'system');
|
|
||||||
return wasHunspell !== isHunspell;
|
return wasHunspell !== isHunspell;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user