Selaa lähdekoodia

GWidget: Ignore updates if self has !updates_enabled().

We were only checking when propagating updates to parents, duh.
Andreas Kling 6 vuotta sitten
vanhempi
commit
49d0cdabac
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      LibGUI/GWidget.cpp

+ 3 - 0
LibGUI/GWidget.cpp

@@ -293,6 +293,9 @@ void GWidget::update(const Rect& rect)
     if (!is_visible())
         return;
 
+    if (!updates_enabled())
+        return;
+
     GWindow* window = m_window;
     GWidget* parent = parent_widget();
     while (parent) {