Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Plugins/Linter/Source/Linter/Private/LintRule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "IAssetRegistry.h"
#include "IAssetTools.h"
#include "AssetRegistryModule.h"
#include "Misc/EngineVersionComparison.h"


ULintRule::ULintRule(const FObjectInitializer& ObjectInitializer)
Expand Down Expand Up @@ -61,7 +62,7 @@ FName ULintRule::GetRuleBasedObjectVariantName_Implementation(UObject* ObjectToL
UMaterialInterface* MI = Cast<UMaterialInterface>(ObjectToLint);
if (MI != nullptr)
{
#if ENGINE_MINOR_VERSION >= 25
#if UE_VERSION_NEWER_THAN(4, 25, 0)
TMicRecursionGuard RecursionGuard;
#else
UMaterialInterface::TMicRecursionGuard RecursionGuard;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "Framework/Commands/UIAction.h"
#include "Delegates/IDelegateInstance.h"
#include "TooltipEditor/TooltipTool.h"
#include "Misc/EngineVersionComparison.h"

#define LOCTEXT_NAMESPACE "Linter"
DEFINE_LOG_CATEGORY_STATIC(LinterContentBrowserExtensions, Log, All);
Expand Down Expand Up @@ -50,7 +51,11 @@ void FLinterContentBrowserExtensions::InstallHooks(FLinterModule* LinterModule,
{
lm->SetDesiredLintPaths(SelectedPaths);
}
#if UE_VERSION_NEWER_THAN(4, 26, 0)
FGlobalTabmanager::Get()->TryInvokeTab(FName("LinterTab"));
#else
FGlobalTabmanager::Get()->InvokeTab(FName("LinterTab"));
#endif
}
})),
NAME_None,
Expand Down
9 changes: 9 additions & 0 deletions Plugins/Linter/Source/Linter/Private/UI/LintWizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "FileHelpers.h"
#include "Logging/MessageLog.h"
#include "Logging/TokenizedMessage.h"
#include "Misc/EngineVersionComparison.h"

#include "LinterStyle.h"
#include "LintRuleSet.h"
Expand Down Expand Up @@ -88,7 +89,11 @@ void SLintWizard::Construct(const FArguments& InArgs)
.FinishButtonText(LOCTEXT("FinishButtonText", "Close"))
.OnFinished_Lambda([&]()
{
#if UE_VERSION_NEWER_THAN(4, 26, 0)
FGlobalTabmanager::Get()->TryInvokeTab(FName("LinterTab"))->RequestCloseTab();
#else
FGlobalTabmanager::Get()->InvokeTab(FName("LinterTab"))->RequestCloseTab();
#endif
})
+ SWizard::Page()
.CanShow_Lambda([&]() { return RuleSets.Num() > 0; })
Expand Down Expand Up @@ -521,7 +526,11 @@ void SLintWizard::Construct(const FArguments& InArgs)
LOCTEXT("ZipTaskShortName", "Zip Project Task"), FEditorStyle::GetBrush(TEXT("MainFrame.CookContent")));
}

#if UE_VERSION_NEWER_THAN(4, 26, 0)
FGlobalTabmanager::Get()->TryInvokeTab(FName("LinterTab"))->RequestCloseTab();
#else
FGlobalTabmanager::Get()->InvokeTab(FName("LinterTab"))->RequestCloseTab();
#endif
}
return FReply::Handled();
})
Expand Down