Skip to content

Commit a558deb

Browse files
committed
correction de sertain comportement non majeur
1 parent 61499f1 commit a558deb

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

Core/Venv_Manager/Manager.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,14 @@ def _safe_decode(self, data: bytes, error_handling: str = "replace") -> str:
252252
except Exception:
253253
return "[Decode Error]"
254254

255-
def _safe_log(self, text: str):
255+
def _safe_log(self, text: str, text_en: str | None = None):
256256
try:
257+
# If both FR/EN provided and parent has translator, resolve first.
258+
if text_en is not None and hasattr(self.parent, "tr"):
259+
try:
260+
text = self.parent.tr(text, text_en)
261+
except Exception:
262+
pass
257263
if hasattr(self.parent, "_safe_log"):
258264
self.parent._safe_log(text)
259265
return

Core/WorkSpaceManager/SetupWorkspace.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ def apply_workspace_selection(
209209
# Configuration du venv
210210
try:
211211
if hasattr(gui_instance, "venv_manager") and gui_instance.venv_manager:
212-
gui_instance.venv_manager.setup_workspace(folder)
212+
# Do not auto-install engine tools on workspace selection.
213+
# Tools are installed only when compiling with the selected engine.
214+
gui_instance.venv_manager.setup_workspace(folder, check_tools=False)
213215
except Exception as e:
214216
gui_instance.log_i18n(
215217
f"⚠️ Erreur lors de la configuration du workspace: {e}",

0 commit comments

Comments
 (0)