Skip to content

Commit

Permalink
Remove not needed logic in LoadBackgroundImageButton.OnButtonPressed()
Browse files Browse the repository at this point in the history
Not needed anymore as ResetState() sets the button unavailable if the image is invalid
  • Loading branch information
eeropomell committed Jun 10, 2024
1 parent dedda34 commit 53dd256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/GUI/LoadBackgroundImageButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void RefreshDescription()
}
override protected void OnButtonPressed()
{
if (ReferenceImage == null || !ReferenceImage.Valid)
if (ReferenceImage == null)
{
return;
}
Expand Down

0 comments on commit 53dd256

Please sign in to comment.