fix(app): clear stuck spellcheck reload banner (#2107)

This commit is contained in:
Hampus authored and GitHub committed 2026-08-30 00:12:48 +02:00
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;
} }