diff --git a/App/AppEnvironment.swift b/App/AppEnvironment.swift index 1e2b45a..bc9449a 100644 --- a/App/AppEnvironment.swift +++ b/App/AppEnvironment.swift @@ -225,13 +225,15 @@ final class AppEnvironment { private func applySettings() { let settings = settingsStore.current() let previousTarget = panelViewModel.configuration.target.code + let previousRoutes = panelViewModel.configuration.languageRoutes panelViewModel.updateConfiguration(configuration(for: settings)) if settings.doubleCopyWindowMs != watcherWindowMs { watcherWindowMs = settings.doubleCopyWindowMs restartWatcher() } let targetChanged = previousTarget != settings.targetLanguage && panelViewModel.source != nil - if targetChanged { + let routesChanged = previousRoutes != settings.languageRoutes && panelViewModel.source != nil + if targetChanged || routesChanged { Task { await panelViewModel.retranslate() } } onStateChange?() diff --git a/MANIFEST.sha256 b/MANIFEST.sha256 index 0abad73..6115aca 100644 --- a/MANIFEST.sha256 +++ b/MANIFEST.sha256 @@ -18,7 +18,7 @@ c989a2513d0b926f3a202b0616426c7443594ce72896ee91c29c4e83451d433c ./.opencode/sk 2c0c375f3f6704a43e1042b250e0b633ba740aa7bc2fbf5518891a7b5464507e ./.swiftlint.yml 3222c8553505401c967cc302e2d46a99db95f98d92650f6b245e2a1dc901bea9 ./AGENTS.md 593745fab27436e91148de34b7e0e530cef5137e2c566cb479caed033602b949 ./App/AppDelegate.swift -3bb34a310ed421fa3e5eeb16817dab7b237adb177029d81cfe3018c35da5eb65 ./App/AppEnvironment.swift +ffecf629fcbe9b5d3f85e9834f5a9c3eb794304a7cc20a45691d1943eb57d18a ./App/AppEnvironment.swift dc41f554a88b5b499840f72ef676b31530e6ebfcc5da636155001c52ca48d8a1 ./App/Diagnostics/DiagnosticsView.swift 69f0c24937507ed7a9137abfa95fdcd2798cd909dd74642d4b5e6a859da94253 ./App/Info.plist 36aec6e936e6ffff104908b370a7231b9283e178df8d0a453639dca9c573460d ./App/LaunchAtLoginController.swift