Skip to content
Merged
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 Source/MantleEditor/Private/MantleLibraryPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,8 @@ SMantleLibraryPanel::~SMantleLibraryPanel()
TSharedRef<SWidget> SMantleLibraryPanel::MakeToggle(const FText& Label, TFunction<bool()> IsOn, TFunction<void()> OnPicked, const FText& Tooltip)
{
return SNew(SCheckBox)
.Style(&FAppStyle::Get().GetWidgetStyle<FCheckBoxStyle>("ToggleButton"))
// One of a row is picked: the radio buttons the other Mantle panels use.
.Style(&FAppStyle::Get().GetWidgetStyle<FCheckBoxStyle>("RadioButton"))
.ToolTipText(Tooltip)
.IsChecked_Lambda([IsOn] { return IsOn() ? ECheckBoxState::Checked : ECheckBoxState::Unchecked; })
.OnCheckStateChanged_Lambda([OnPicked](ECheckBoxState State)
Expand Down
2 changes: 0 additions & 2 deletions Source/MantleEditor/Private/Tests/MantleLibraryAddTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<SMantleLibraryPanel> Panel = SNew(SMantleLibraryPanel);
const auto MakeCard = [](const int32 Number, const TCHAR* Kind, const TCHAR* Name)
{
Expand Down