You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#preflight 6227f184695c94f981bc741a #rb jamie.dale #ROBOMERGE-AUTHOR: rex.hill #ROBOMERGE-SOURCE: CL 19322495 via CL 19339234 via CL 19344449 via CL 19350377 via CL 19350529 #ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884) [CL 19351705 by rex hill in ue5-main branch]
25 lines
555 B
C++
25 lines
555 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "ContentBrowserMenuContexts.h"
|
|
#include "SContentBrowser.h"
|
|
|
|
FName UContentBrowserToolbarMenuContext::GetCurrentPath() const
|
|
{
|
|
if (TSharedPtr<SContentBrowser> Browser = ContentBrowser.Pin())
|
|
{
|
|
return *Browser->GetCurrentPath(EContentBrowserPathType::Virtual);
|
|
}
|
|
|
|
return NAME_None;
|
|
}
|
|
|
|
bool UContentBrowserToolbarMenuContext::CanWriteToCurrentPath() const
|
|
{
|
|
if (TSharedPtr<SContentBrowser> Browser = ContentBrowser.Pin())
|
|
{
|
|
return Browser->CanWriteToCurrentPath();
|
|
}
|
|
|
|
return false;
|
|
}
|