Pārlūkot izejas kodu

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

We were only checking when propagating updates to parents, duh.
Andreas Kling 6 gadi atpakaļ
vecāks
revīzija
49d0cdabac
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      LibGUI/GWidget.cpp

+ 3 - 0
LibGUI/GWidget.cpp

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