From a882a878002af0e5c12b0716532890afd55a1553 Mon Sep 17 00:00:00 2001 From: llama Date: Sat, 1 Nov 2025 22:21:32 +0800 Subject: [PATCH] clear lib path cache on sync --- qt/launcher/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qt/launcher/src/main.rs b/qt/launcher/src/main.rs index d8657da37..442a1fc64 100644 --- a/qt/launcher/src/main.rs +++ b/qt/launcher/src/main.rs @@ -276,6 +276,9 @@ fn handle_version_install_or_update(state: &State, choice: MainMenuChoice) -> Re // Remove sync marker before attempting sync let _ = remove_file(&state.sync_complete_marker); + // clear possibly invalidated libpython path cache + let _ = remove_file(&state.libpython_path); + println!("{}\n", state.tr.launcher_updating_anki()); let python_version_trimmed = if state.user_python_version_path.exists() {