Skip to content

Commit cec5a3d

Browse files
authored
Merge pull request #224 from Unity-Technologies/Uni-31553_change_popup_message
Uni-31553 [CHANGED] popup message to be more appropriate
2 parents da22ace + e4e9967 commit cec5a3d

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
@@ -696,13 +696,21 @@ public static string GetDCCName() {
696696
/// </summary>
697697
/// <param name="dcc">Dcc name.</param>
698698
private static void ShowSuccessDialog(string dcc, int exitCode){
699-
string title, message;
699+
string title, message, customMessage;
700700
if (exitCode != 0) {
701701
title = string.Format("Failed to install {0} Integration.", dcc);
702702
message = string.Format("Failed to configure {0}, please check logs (exitcode={1}).", dcc, exitCode);
703703
} else {
704-
title = string.Format("Completed installation of {0} Integration.", dcc);
705-
message = string.Format("Enjoy the new Unity menu in {0}.", dcc);
704+
if (EditorTools.ExportSettings.instance.launchAfterInstallation)
705+
{
706+
customMessage = "Installing Unity menu in {0}, application will open once installation is complete";
707+
}
708+
else
709+
{
710+
customMessage = "Enjoy the new Unity menu in {0}.";
711+
}
712+
title = string.Format("Completing installation of {0} Integration.", dcc);
713+
message = string.Format(customMessage, dcc);
706714
}
707715
UnityEditor.EditorUtility.DisplayDialog (title, message, "Ok");
708716
}

0 commit comments

Comments
 (0)