Don't autolaunch downloaded docs, this will be done from the Web activity.

This commit is contained in:
Tomeu Vizoso 2007-05-20 12:36:55 +02:00
parent 5d4b9b1dfa
commit 04fc7047c2

View File

@ -106,16 +106,6 @@ class ClipboardIcon(CanvasIcon):
else: else:
self.props.xo_color = XoColor("#000000,#FFFFFF") self.props.xo_color = XoColor("#000000,#FFFFFF")
if activity and percent == 100:
# FIXME: restrict based on file type rather than activity once
# we have a better type registry
# restrict auto-open to a specific set of activities
allowed = ["org.laptop.AbiWordActivity",
"org.laptop.sugar.Xbook",
"org.vpri.EtoysActivity"]
if activity in allowed:
self._open_file()
def _open_file(self): def _open_file(self):
if self._percent < 100: if self._percent < 100:
return return