Fixed URL for the LevelViewport controls help popup to work on Mac

[UE-18355] - Clicking on show viewport controls on mac comes up with missing page error on mac

#fix Prefixed URLs correctly with file:// in SLevelViewportControlsPopup

[CL 2644736 by Chris Wood in Main branch]
This commit is contained in:
Chris Wood
2015-08-05 08:54:28 -04:00
committed by chris.wood@epicgames.com
parent dd5e6d4c56
commit 069c156435

View File

@@ -9,11 +9,11 @@ void SLevelViewportControlsPopup::Construct(const FArguments& InArgs)
{
PopupSize.Set(252, 558);
#if PLATFORM_WINDOWS
PopupPath = FPaths::ConvertRelativePathToFull(FPaths::Combine(*FPaths::EngineDir(), TEXT("Documentation/Source/Shared/Editor/Overlays/ViewportControlsWindows.html")));
PopupPath = FString(TEXT("file:///")) + FPaths::ConvertRelativePathToFull(FPaths::Combine(*FPaths::EngineDir(), TEXT("Documentation/Source/Shared/Editor/Overlays/ViewportControlsWindows.html")));
#elif PLATFORM_LINUX
PopupPath = FPaths::ConvertRelativePathToFull(FPaths::Combine(*FPaths::EngineDir(), TEXT("Documentation/Source/Shared/Editor/Overlays/ViewportControlsWindows.html")));
PopupPath = FString(TEXT("file://")) + FPaths::ConvertRelativePathToFull(FPaths::Combine(*FPaths::EngineDir(), TEXT("Documentation/Source/Shared/Editor/Overlays/ViewportControlsWindows.html")));
#elif PLATFORM_MAC
PopupPath = FPaths::ConvertRelativePathToFull(FPaths::Combine(*FPaths::EngineDir(), TEXT("Documentation/Source/Shared/Editor/Overlays/ViewportControlsMac.html")));
PopupPath = FString(TEXT("file://")) + FPaths::ConvertRelativePathToFull(FPaths::Combine(*FPaths::EngineDir(), TEXT("Documentation/Source/Shared/Editor/Overlays/ViewportControlsMac.html")));
#endif
if (!PopupPath.IsEmpty())