diff --git a/Source/Nakatomi/OptionsUIWidget.cpp b/Source/Nakatomi/OptionsUIWidget.cpp index ba99401..7f3b3d2 100644 --- a/Source/Nakatomi/OptionsUIWidget.cpp +++ b/Source/Nakatomi/OptionsUIWidget.cpp @@ -91,7 +91,7 @@ void UOptionsUIWidget::NativeConstruct() if (ResetToDefaultsButton) { ResetToDefaultsButton->OnClicked.AddUniqueDynamic(this, &UOptionsUIWidget::ResetToDefaultsButtonOnClicked); - BackButton->OnClicked.AddUniqueDynamic(this, &UOptionsUIWidget::PlayClickedSound); + ResetToDefaultsButton->OnClicked.AddUniqueDynamic(this, &UOptionsUIWidget::PlayClickedSound); ResetToDefaultsButton->OnHovered.AddUniqueDynamic(this, &UOptionsUIWidget::PlayHoveredSound); ResetToDefaultsButton->OnHovered.AddUniqueDynamic(this, &UOptionsUIWidget::ResetToDefaultsTextBlockHoveredDelegate); @@ -177,10 +177,12 @@ void UOptionsUIWidget::OnFullscreenCheckboxChanged(bool bIsChecked) if (bIsChecked) { GEngine->GameUserSettings->SetFullscreenMode(EWindowMode::Fullscreen); + ResolutionButton->SetIsEnabled(false); } else { GEngine->GameUserSettings->SetFullscreenMode(EWindowMode::Windowed); + ResolutionButton->SetIsEnabled(true); } GEngine->GameUserSettings->ApplySettings(true);