Restore redraw button icon after fullscreen change

This was previously removed, but it looks like it is still needed for GTK4 to draw button icon at correct size after toggling fullscreen.
This commit is contained in:
Rafał Dzięgiel
2021-01-20 18:33:14 +01:00
parent d36a972864
commit f5fef2df5b

View File

@@ -36,6 +36,10 @@ class ClapperCustomButton extends Gtk.Button
this.margin_end = (isFullscreen) ? 3 : 2;
this.can_focus = isFullscreen;
/* Redraw icon after style class change */
if(this.icon_name)
this.set_icon_name(this.icon_name);
this.isFullscreen = isFullscreen;
}