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

This commit is contained in:
Hampus
2026-08-30 00:12:48 +02:00
committed by GitHub
parent b1f7c78c7e
commit 3cc7b9050c
@@ -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;
}