[gnome-usage/tracker-powered-storage-view-wip] storage: Sort directories by size as files
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-usage/tracker-powered-storage-view-wip] storage: Sort directories by size as files
- Date: Tue, 31 Jul 2018 16:47:02 +0000 (UTC)
commit d6459659c87ce55a86d0fa1c681c7f178619ee99
Author: Petr Štětka <pstetka redhat com>
Date: Mon Jun 25 14:09:41 2018 +0200
storage: Sort directories by size as files
src/storage/tracker-controller.vala | 8 --------
1 file changed, 8 deletions(-)
---
diff --git a/src/storage/tracker-controller.vala b/src/storage/tracker-controller.vala
index 34e1d92..30d4eda 100644
--- a/src/storage/tracker-controller.vala
+++ b/src/storage/tracker-controller.vala
@@ -63,14 +63,6 @@ public class Usage.TrackerController : GLib.Object {
var item_a = a as StorageViewItem;
var item_b = b as StorageViewItem;
- if (item_a.type == FileType.DIRECTORY) {
- return -1;
- }
-
- if (item_b.type == FileType.DIRECTORY) {
- return 1;
- }
-
if (item_a.size > item_b.size) {
return -1;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]