fix(dictionary): block --yomitan when an external profile is configured

- Keep read-only external-profile mode while Hachidori is active by checking the configured externalProfilePath
- Hachidori settings remain available
- Smoke check asserts the external-profile block, with a --bundled-yomitan path for the bundled case
- Update usage docs and changelog fragment
This commit is contained in:
2026-09-22 19:03:39 -07:00
parent cacaa2b371
commit f225ac3c89
4 changed files with 31 additions and 13 deletions
+1 -1
View File
@@ -5226,7 +5226,7 @@ function initializeOverlayRuntime(): void {
function openYomitanSettings(): boolean {
if (activeDictionaryBackend === 'hachidori') {
if (yomitanProfilePolicy.isExternalReadOnlyMode()) {
if (configService.getConfig().yomitan.externalProfilePath.trim()) {
logger.warn('Yomitan settings unavailable while using read-only external-profile mode.');
return false;
}