From c71652f0f6c5bc00b1c870cf40b3eea5442f10e8 Mon Sep 17 00:00:00 2001 From: OffrayLuna Date: Sat, 1 Oct 2016 20:56:51 +0000 Subject: [PATCH] Again, implementing dumb deletion of temporal files. La tercera es la vencida! --- src/Grafoscopio/GrafoscopioGUI.class.st | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Grafoscopio/GrafoscopioGUI.class.st b/src/Grafoscopio/GrafoscopioGUI.class.st index dad69a0..308acc2 100644 --- a/src/Grafoscopio/GrafoscopioGUI.class.st +++ b/src/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