Fix bug in device close code (bug 838)

Make sure that no notification is shown when
the user has cancelled the sync operation.
This commit is contained in:
Thomas Perl 2010-02-23 15:14:16 +01:00
parent 9eafa4426a
commit 083437e7c7

View file

@ -96,7 +96,7 @@ class gPodderSyncUI(object):
def after_device_sync_callback(device, successful_sync):
if device.cancelled:
log('Cancelled by user.', sender=self)
if successful_sync:
elif successful_sync:
title = _('Device synchronized')
message = _('Your device has been synchronized.')
self.notification(message, title)