From 052d8523c7097d1d8ae76f5d147bc1895dabe968 Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Sat, 1 Oct 2016 20:56:51 +0000 Subject: [PATCH] Again, implementing dumb deletion of temporal files. La tercera es la vencida! --- repository/Grafoscopio/GrafoscopioGUI.class.st | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/repository/Grafoscopio/GrafoscopioGUI.class.st b/repository/Grafoscopio/GrafoscopioGUI.class.st index dad69a0..308acc2 100644 --- a/repository/Grafoscopio/GrafoscopioGUI.class.st +++ b/repository/Grafoscopio/GrafoscopioGUI.class.st @@ -129,7 +129,9 @@ GrafoscopioGUI class >> dockingBar: anObject [ { #category : #'graphical interface' } GrafoscopioGUI class >> downloadingFrom: downloadUrl withMessage: aString into: location [ - + | fileName | + fileName := (downloadUrl splitOn: $/) last. + (location / fileName) exists ifTrue: [ (location / fileName) ensureDelete ]. [: bar | bar title: aString. [ZnClient new