[tasque/viewmodel: 54/78] Use DeferRefresh during ListCollectionView creation
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque/viewmodel: 54/78] Use DeferRefresh during ListCollectionView creation
- Date: Wed, 29 Aug 2012 18:39:12 +0000 (UTC)
commit 05ddc354ee80cbad7df5f0a14a6e9abd1999bd71
Author: Antonius Riha <antoniusriha gmail com>
Date: Tue Aug 7 10:15:28 2012 +0200
Use DeferRefresh during ListCollectionView creation
src/libtasqueui/Legacy/MainWindowModel.cs | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/libtasqueui/Legacy/MainWindowModel.cs b/src/libtasqueui/Legacy/MainWindowModel.cs
index 21dc9de..55491ab 100644
--- a/src/libtasqueui/Legacy/MainWindowModel.cs
+++ b/src/libtasqueui/Legacy/MainWindowModel.cs
@@ -44,9 +44,11 @@ namespace Tasque.UIModel.Legacy
preferences.SettingChanged += HandleSettingChanged;
Tasks = new ListCollectionView<Task> (Backend.Tasks);
- Tasks.Filter = Filter;
- Tasks.GroupDescriptions.Add (new PropertyGroupDescription (null, new TaskGroupConverter ()));
- Tasks.CustomSort = new TaskComparer ();
+ using (Tasks.DeferRefresh ()) {
+ Tasks.Filter = Filter;
+ Tasks.GroupDescriptions.Add (new PropertyGroupDescription (null, new TaskGroupConverter ()));
+ Tasks.CustomSort = new TaskComparer ();
+ }
topPanel = new MainWindowTopPanelModel (this);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]