We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 691afe8 commit 623818aCopy full SHA for 623818a
1 file changed
Core/Api.py
@@ -32,9 +32,10 @@ def _confirm_workspace_change(gui, folder: str) -> bool:
32
"Voulez-vous continuer ?"
33
)
34
try:
35
- if hasattr(gui, "tr"):
36
- title = gui.tr("Confirmation", "Confirmation")
37
- message = gui.tr(
+ parent = getattr(gui, "parent", None)
+ if parent and hasattr(parent, "tr"):
+ title = parent.tr("Confirmation", "Confirmation")
38
+ message = parent.tr(
39
f"Un plugin demande de changer le workspace vers :\n{folder}\n\n"
40
"Voulez-vous continuer ?",
41
f"A plugin requests changing the workspace to:\n{folder}\n\n"
0 commit comments