From 6c790f7bd5f2b8df3af6fe2e94f9e42128ed708f Mon Sep 17 00:00:00 2001 From: Sascha Silbe Date: Tue, 07 Jun 2011 16:08:28 +0000 Subject: Clarify warning on Stop with pending downloads (SL#1508) The warning previously used the word "cancel" to describe two antagonistic operations: Not continuing the download (including erasing it from the Journal) and not stopping Browse. The new wording was agreed upon [1] by the Design Team. [1] http://meeting.sugarlabs.org/sugar-meeting/meetings/2011-05-29T16:09:15.html Closes: SL#1508 Signed-off-by: Sascha Silbe --- (limited to 'downloadmanager.py') diff --git a/downloadmanager.py b/downloadmanager.py index a88389f..4eab726 100644 --- a/downloadmanager.py +++ b/downloadmanager.py @@ -64,6 +64,10 @@ def can_quit(): return len(_active_downloads) == 0 +def num_downloads(): + return len(_active_downloads) + + def remove_all_downloads(): for download in _active_downloads: download.cancelable.cancel(NS_ERROR_FAILURE) -- cgit v0.9.1