Blame SOURCES/properties-window-Fix-endless-content-size-calculati.patch

44721b
From 13ecf5f9c2d219866550757cb660b569299ac285 Mon Sep 17 00:00:00 2001
44721b
From: Ondrej Holy <oholy@redhat.com>
44721b
Date: Mon, 2 Mar 2020 14:53:36 +0100
44721b
Subject: [PATCH] properties-window: Fix endless content size calculations
44721b
44721b
The total number of items and their size are shown in Properties dialog.
44721b
44721b
However, the deep count calculations are currently restarted with each
44721b
"changed" event of `NautilusFile` object(s). This is not usually a problem
44721b
if only one file is selected, but it is a pretty big issue when more
44721b
files are selected. It is common that the calculation never ends. This
44721b
is because the "changed" events are emitted in many irrelevant cases
44721b
(e.g. free space change) and it totally doesn't make sense to restart
44721b
the calculation in most of the cases. The initial idea was to react
44721b
on ongoing file operations, however, the calculation currently doesn't
44721b
react on file changes deeper in the tree anyway, or on changes, which
44721b
happened after the calculation is done. Thus the current result can be
44721b
outdated anyway.
44721b
44721b
Let's ignore `NautilusFile` changes at all when calculating the content
44721b
size as it is pretty impossible to implement this properly to dynamically
44721b
react on all size changes in the tree.
44721b
44721b
Fixes: https://gitlab.gnome.org/GNOME/nautilus/issues/363
44721b
---
44721b
 src/nautilus-properties-window.c | 4 ----
44721b
 1 file changed, 4 deletions(-)
44721b
44721b
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
44721b
index 9250adbe3..52a2b3fce 100644
44721b
--- a/src/nautilus-properties-window.c
44721b
+++ b/src/nautilus-properties-window.c
44721b
@@ -1137,10 +1137,6 @@ properties_window_update (NautilusPropertiesWindow *window,
44721b
         {
44721b
             dirty_target = TRUE;
44721b
         }
44721b
-        if (changed_file != NULL)
44721b
-        {
44721b
-            start_deep_count_for_file (window, changed_file);
44721b
-        }
44721b
     }
44721b
 
44721b
     if (dirty_original)
44721b
-- 
44721b
2.26.0
44721b