Skip to content

Commit 4f383b7

Browse files
author
AJubrey
committed
[ADDED] a small if statement to change the message a little bit depending on the situation
1 parent 6dcd9d2 commit 4f383b7

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Assets/FbxExporters/Editor/InstallIntegration.cs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -689,13 +689,21 @@ public static string GetDCCName() {
689689
/// </summary>
690690
/// <param name="dcc">Dcc name.</param>
691691
private static void ShowSuccessDialog(string dcc, int exitCode){
692-
string title, message;
692+
string title, message, customMessage;
693693
if (exitCode != 0) {
694694
title = string.Format("Failed to install {0} Integration.", dcc);
695695
message = string.Format("Failed to configure {0}, please check logs (exitcode={1}).", dcc, exitCode);
696696
} else {
697-
title = string.Format("Completed installation of {0} Integration.", dcc);
698-
message = string.Format("You can enjoy the new Unity menu in {0} when loading is complete.", dcc);
697+
if (EditorTools.ExportSettings.instance.launchAfterInstallation)
698+
{
699+
customMessage = "Enjoy the new Unity menu in {0}, when it's done loading";
700+
}
701+
else
702+
{
703+
customMessage = "Enjoy the new Unity menu in {0}.";
704+
}
705+
title = string.Format("Completing installation of {0} Integration.", dcc);
706+
message = string.Format(customMessage, dcc);
699707
}
700708
UnityEditor.EditorUtility.DisplayDialog (title, message, "Ok");
701709
}

0 commit comments

Comments
 (0)