|
19 | 19 | #include "FileHelpers.h"
|
20 | 20 | #include "Logging/MessageLog.h"
|
21 | 21 | #include "Logging/TokenizedMessage.h"
|
| 22 | +#include "ContentBrowserModule.h" |
| 23 | +#include "DesktopPlatformModule.h" |
| 24 | +#include "AssetToolsModule.h" |
| 25 | +#include "Framework/Docking/TabManager.h" |
| 26 | +#include "Widgets/Input/SComboBox.h" |
| 27 | +#include "Widgets/Docking/SDockTab.h" |
| 28 | +#include "Misc/App.h" |
| 29 | +#include "Engine/World.h" |
| 30 | +#include "Misc/EngineVersionComparison.h" |
22 | 31 |
|
23 | 32 | #include "LinterStyle.h"
|
24 | 33 | #include "LintRuleSet.h"
|
@@ -88,7 +97,11 @@ void SLintWizard::Construct(const FArguments& InArgs)
|
88 | 97 | .FinishButtonText(LOCTEXT("FinishButtonText", "Close"))
|
89 | 98 | .OnFinished_Lambda([&]()
|
90 | 99 | {
|
| 100 | +#if UE_VERSION_NEWER_THAN(4, 26, 0) |
91 | 101 | FGlobalTabmanager::Get()->TryInvokeTab(FName("LinterTab"))->RequestCloseTab();
|
| 102 | +#else |
| 103 | + FGlobalTabmanager::Get()->InvokeTab(FName("LinterTab"))->RequestCloseTab(); |
| 104 | +#endif |
92 | 105 | })
|
93 | 106 | + SWizard::Page()
|
94 | 107 | .CanShow_Lambda([&]() { return RuleSets.Num() > 0; })
|
@@ -521,7 +534,15 @@ void SLintWizard::Construct(const FArguments& InArgs)
|
521 | 534 | LOCTEXT("ZipTaskShortName", "Zip Project Task"), FAppStyle::GetBrush(TEXT("MainFrame.CookContent")));
|
522 | 535 | }
|
523 | 536 |
|
| 537 | +<<<<<<< HEAD:Source/Linter/Private/UI/LintWizard.cpp |
| 538 | + FGlobalTabmanager::Get()->TryInvokeTab(FName("LinterTab"))->RequestCloseTab(); |
| 539 | +======= |
| 540 | +#if UE_VERSION_NEWER_THAN(4, 26, 0) |
524 | 541 | FGlobalTabmanager::Get()->TryInvokeTab(FName("LinterTab"))->RequestCloseTab();
|
| 542 | +#else |
| 543 | + FGlobalTabmanager::Get()->InvokeTab(FName("LinterTab"))->RequestCloseTab(); |
| 544 | +#endif |
| 545 | +>>>>>>> 7384b2d (Fix UE version check):Plugins/Linter/Source/Linter/Private/UI/LintWizard.cpp |
525 | 546 | }
|
526 | 547 | return FReply::Handled();
|
527 | 548 | })
|
|
0 commit comments