Skip to content

Commit 25b4c86

Browse files
committed
attempt to fix file associations once before giving up
1 parent ad4c0dc commit 25b4c86

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pbsync/__main__.py

+5
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,11 @@ def sync_handler(sync_val: str, repository_val=None):
604604
pbtools.run_non_blocking_ex(launch_args)
605605
else:
606606
launched_editor = False
607+
if not pbunreal.check_ue_file_association():
608+
pblog.warning(
609+
"PBSync failed to find a valid file association to launch the editor, attempting to resolve..."
610+
)
611+
pbunreal.run_unreal_setup()
607612
if pbunreal.check_ue_file_association():
608613
uproject_file = pbconfig.get("uproject_name")
609614
path = str(Path(uproject_file).resolve())

0 commit comments

Comments
 (0)