From f20db12c6428f4124fd9feac7828f0a2ffa740a9 Mon Sep 17 00:00:00 2001 From: Ajay Garg Date: Fri, 9 Sep 2011 17:21:50 +0000 Subject: [PATCH sugar 62/74] updater: Only pre-select already installed activities (fixes SL#2822, AU#383) OLPC AU uses the software updater to offer easy installing of optional activities. For this to work properly new activities must not be selected by default. Signed-off-by: Ajay Garg [adjusted description, split off unrelated bug fixes, set default value] Signed-off-by: Sascha Silbe --- extensions/cpsection/updater/view.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/extensions/cpsection/updater/view.py b/extensions/cpsection/updater/view.py index 559ab8d..891f552 100644 --- a/extensions/cpsection/updater/view.py +++ b/extensions/cpsection/updater/view.py @@ -358,10 +358,11 @@ def __init__(self, model): for bundle_update in model.updates: row = [None] * 5 row[self.BUNDLE_ID] = bundle_update.bundle.get_bundle_id() - row[self.SELECTED] = True + row[self.SELECTED] = False row[self.ICON_FILE_NAME] = bundle_update.bundle.get_icon() if bundle_update.package_type == 'update': + row[self.SELECTED] = True details = _('From version %(current)s to %(new)s (Size: %(size)s)') details = details % \ {'current': bundle_update.bundle.get_activity_version(), -- 1.7.6