damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.42k stars 804 forks source link

Adding scripts via barcode replace previous script with the same name #230

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:27

What steps will reproduce the problem?
1. Create a script called, say, "foo.py"
2. Scan a barcode for a (possibly different) script, also called foo.py

What is the expected output? What do you see instead?
I expected sl4a to warn me that I was going to replace the current foo.py 
script. Instead, it silently overwrites the old with the new one.

What version of the product are you using? On what operating system?
SL4A r0

I'm not sure if that's the intended behaviour, and it hasn't bitten me in any 
way, I just realised that it might be confusing.

If you agree that a warning is the preferred behaviour, I could provide a patch.

Original issue reported on code.google.com by tioerre on 5 Aug 2010 at 5:57

Copied from original issue: damonkohler/android-scripting#385