File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
2
2
3
3
#include " LinterContentBrowserExtensions.h"
4
+ #include " ContentBrowserMenuContexts.h"
4
5
#include " LinterStyle.h"
5
6
#include " ContentBrowserModule.h"
6
7
#include " Linter.h"
@@ -111,13 +112,8 @@ void FLinterContentBrowserExtensions::InstallHooks() {
111
112
LOCTEXT (" ScanWithLinter_Tooltip" , " Scan project content with Linter" ),
112
113
FSlateIcon (FLinterStyle::GetStyleSetName (), " Linter.Toolbar.Icon" ),
113
114
FToolMenuExecuteAction::CreateLambda ([](const FToolMenuContext& InContext) {
114
- if (const UContentBrowserDataMenuContext_FolderMenu* Context = InContext.FindContext <UContentBrowserDataMenuContext_FolderMenu>()) {
115
- TArray<FString> SelectedPaths;
116
- for (const auto & Asset : Context->SelectedItems ) {
117
- SelectedPaths.Add (Asset.GetVirtualPath ().ToString ());
118
- }
119
-
120
- RunLinterForAssets (SelectedPaths);
115
+ if (const auto * Context = InContext.FindContext <UContentBrowserFolderContext>()) {
116
+ RunLinterForAssets (Context->SelectedPackagePaths );
121
117
}
122
118
})
123
119
);
You can’t perform that action at this time.
0 commit comments