diff --git a/.gitignore b/.gitignore index 9905b2e..ef71254 100644 --- a/.gitignore +++ b/.gitignore @@ -76,3 +76,4 @@ Plugins/**/Intermediate/* # Cache files for the editor to use DerivedDataCache/* +BusyRabbit.uproject.DotSettings.user diff --git a/BusyRabbit.uproject.DotSettings.user b/BusyRabbit.uproject.DotSettings.user deleted file mode 100644 index 9370ce5..0000000 --- a/BusyRabbit.uproject.DotSettings.user +++ /dev/null @@ -1,5 +0,0 @@ - - ForceIncluded - ForceIncluded - ForceIncluded - ForceIncluded \ No newline at end of file diff --git a/Source/BusyRabbit/Private/Core/PW_UserWidget.cpp b/Source/BusyRabbit/Private/Core/PW_UserWidget.cpp index 0b5ea01..0af8140 100644 --- a/Source/BusyRabbit/Private/Core/PW_UserWidget.cpp +++ b/Source/BusyRabbit/Private/Core/PW_UserWidget.cpp @@ -18,7 +18,8 @@ bool UPW_SimpleWidget::Initialize(){ void UPW_SimpleWidget::SetVisible(bool InVisible){ if (bVisible == InVisible) { return; } - if ((bVisible = InVisible)) { + bVisible = InVisible; + if (bVisible) { SetVisibility(ESlateVisibility::SelfHitTestInvisible); } else { diff --git a/Source/BusyRabbit/Private/Core/UI/PW_TableSwitcher.cpp b/Source/BusyRabbit/Private/Core/UI/PW_TableSwitcher.cpp index d762d0a..fb04099 100644 --- a/Source/BusyRabbit/Private/Core/UI/PW_TableSwitcher.cpp +++ b/Source/BusyRabbit/Private/Core/UI/PW_TableSwitcher.cpp @@ -131,10 +131,10 @@ void UPW_TableSwitcher::RebuildSwitcher(const TMap& I }); Widget->OnHoverStateChange.AddLambda([WeakThis](UPW_TableSwitcherWidget* SelectedWidget, bool IsHover) { - UPW_TableSwitcherWidget* TableWidget; + ; if (!WeakThis.IsValid()) return; for (UWidget* RawWidget : WeakThis->SwitcherBar->GetAllChildren()) { - if ((TableWidget = Cast(RawWidget))) { + if (UPW_TableSwitcherWidget* TableWidget = Cast(RawWidget)) { TableWidget->SetHoveredState(false); } }