Fixed: Now error messages are kept hidden if the show status inside the editor is disabled.

This commit is contained in:
vorotamoroz
2026-04-05 17:43:29 +09:00
parent d709bcc1d0
commit bc22d61a3a
3 changed files with 36 additions and 20 deletions

View File

@@ -21,6 +21,9 @@ export function paneGeneral(
});
this.addOnSaved("displayLanguage", () => this.display());
new Setting(paneEl).autoWireToggle("showStatusOnEditor");
this.addOnSaved("showStatusOnEditor", () => {
eventHub.emitEvent(EVENT_ON_UNRESOLVED_ERROR);
});
new Setting(paneEl).autoWireToggle("showOnlyIconsOnEditor", {
onUpdate: visibleOnly(() => this.isConfiguredAs("showStatusOnEditor", true)),
});