remove extra condition

This commit is contained in:
yggverse 2024-07-22 14:25:22 +03:00
parent 30a8f2617e
commit 527738a1c7

View file

@ -16,7 +16,7 @@ abstract class Button
{
$this->gtk = new \GtkButton;
if ($this::IMAGE && \GtkIconTheme::get_default()->has_icon($this::IMAGE))
if (\GtkIconTheme::get_default()->has_icon($this::IMAGE))
{
$this->gtk->set_image(
\GtkImage::new_from_icon_name(