Skip to content

Commit d2420a2

Browse files
committed
refactor: déplacemnt de la logique de permission special vers service et remise du manager de cfg d'engine dans Core/engine
1 parent 3d6f5e7 commit d2420a2

6 files changed

Lines changed: 5 additions & 5 deletions

File tree

Plugins_SDK/BcPluginContext/Context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def set_selected_workspace(path: Pathish) -> bool:
288288
pass
289289
# Try to inform the GUI when running with UI; ignore result and accept by contract
290290
try:
291-
from Core.Api import request_workspace_change_from_BcPlugin # type: ignore
291+
from Services.AdvancedAuth import request_workspace_change_from_BcPlugin # type: ignore
292292

293293
try:
294294
request_workspace_change_from_BcPlugin(str(path))
File renamed without changes.

Ui/Gui/Dialogs/CompilerDialog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def _t(fr: str, en: str) -> str:
220220

221221
# Save GUI state to disk (persists tab settings)
222222
try:
223-
from Core.EngineConfigManager import save_engine_config_for_gui
223+
from Core.engine.ConfigManager import save_engine_config_for_gui
224224
save_engine_config_for_gui(self, engine_id)
225225
except Exception:
226226
pass
@@ -346,7 +346,7 @@ def start_compilation_process(self, engine_id: str, file_path: str) -> bool:
346346
try:
347347
from Core.Configs import load_ark_config
348348
from Core.Locking import build_context_from_ark_config, build_lock_payload, write_lock_files
349-
from Core.EngineConfigManager import save_engine_config_for_gui
349+
from Core.engine.ConfigManager import save_engine_config_for_gui
350350

351351
save_engine_config_for_gui(self, engine_id)
352352
except Exception:

Ui/Gui/Dialogs/WorkspaceDialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def _t(fr, en): return gui_instance.tr(fr, en)
256256

257257
# Étape 8: recharger les configs engines
258258
try:
259-
from Core.EngineConfigManager import apply_engine_configs_for_workspace
259+
from Core.engine.ConfigManager import apply_engine_configs_for_workspace
260260
apply_engine_configs_for_workspace(gui_instance, folder)
261261
except Exception:
262262
pass

Ui/Gui/UiFeatures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def save_all_engine_configs(self) -> None:
425425
return
426426
try:
427427
import Core.engine as engines_loader
428-
from Core.EngineConfigManager import save_engine_config_for_gui
428+
from Core.engine.ConfigManager import save_engine_config_for_gui
429429

430430
engine_ids = list(engines_loader.available_engines())
431431
if not engine_ids:

0 commit comments

Comments
 (0)