mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-05 15:27:04 +00:00
LibGUI: Don't show resize corner in non-resizable window's statusbar
Fixes #6886.
This commit is contained in:
@@ -116,8 +116,9 @@ void Statusbar::paint_event(PaintEvent& event)
|
||||
|
||||
void Statusbar::resize_event(ResizeEvent& event)
|
||||
{
|
||||
if (window())
|
||||
m_corner->set_visible(window()->is_maximized() ? false : true);
|
||||
if (auto* window = this->window()) {
|
||||
m_corner->set_visible(window->is_resizable() && !window->is_maximized());
|
||||
}
|
||||
|
||||
Widget::resize_event(event);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user