diff --git a/Source/MantleEditor/Private/MantleLibraryPanel.cpp b/Source/MantleEditor/Private/MantleLibraryPanel.cpp index bfb98a70..87c43723 100644 --- a/Source/MantleEditor/Private/MantleLibraryPanel.cpp +++ b/Source/MantleEditor/Private/MantleLibraryPanel.cpp @@ -659,7 +659,8 @@ SMantleLibraryPanel::~SMantleLibraryPanel() TSharedRef SMantleLibraryPanel::MakeToggle(const FText& Label, TFunction IsOn, TFunction OnPicked, const FText& Tooltip) { return SNew(SCheckBox) - .Style(&FAppStyle::Get().GetWidgetStyle("ToggleButton")) + // One of a row is picked: the radio buttons the other Mantle panels use. + .Style(&FAppStyle::Get().GetWidgetStyle("RadioButton")) .ToolTipText(Tooltip) .IsChecked_Lambda([IsOn] { return IsOn() ? ECheckBoxState::Checked : ECheckBoxState::Unchecked; }) .OnCheckStateChanged_Lambda([OnPicked](ECheckBoxState State) diff --git a/Source/MantleEditor/Private/Tests/MantleLibraryAddTest.cpp b/Source/MantleEditor/Private/Tests/MantleLibraryAddTest.cpp index 20d12cac..5225a839 100644 --- a/Source/MantleEditor/Private/Tests/MantleLibraryAddTest.cpp +++ b/Source/MantleEditor/Private/Tests/MantleLibraryAddTest.cpp @@ -49,8 +49,6 @@ bool FMantleLibraryAddRoutesTest::RunTest(const FString& Parameters) { return false; } - // The panel's filter toggles ask for a style of another type and the engine says so for each (older than this test). - AddExpectedErrorPlain(TEXT("The Slate Widget Style 'ToggleButton' is not of the desired type"), EAutomationExpectedErrorFlags::Contains, 0); const TSharedRef Panel = SNew(SMantleLibraryPanel); const auto MakeCard = [](const int32 Number, const TCHAR* Kind, const TCHAR* Name) {