File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ protected void nameCode(String newName) {
204
204
// (osx is case insensitive but preserving, windows insensitive,
205
205
// *nix is sensitive and preserving.. argh)
206
206
if (renamingCode ) {
207
- if (newName .equalsIgnoreCase (current .getCode ().getFileName ())) {
207
+ if (newName .equalsIgnoreCase (current .getCode ().getFileName ()) && OSUtils . isWindows () ) {
208
208
// exit quietly for the 'rename' case.
209
209
// if it's a 'new' then an error will occur down below
210
210
return ;
@@ -256,7 +256,7 @@ protected void nameCode(String newName) {
256
256
// extensions, so compare the full names (including extensions). This
257
257
// might cause problems: http://dev.processing.org/bugs/show_bug.cgi?id=543
258
258
for (SketchCode c : data .getCodes ()) {
259
- if (newName .equalsIgnoreCase (c .getFileName ())) {
259
+ if (newName .equalsIgnoreCase (c .getFileName ()) && OSUtils . isWindows () ) {
260
260
Base .showMessage (_ ("Nope" ),
261
261
I18n .format (
262
262
_ ("A file named \" {0}\" already exists in \" {1}\" " ),
You can’t perform that action at this time.
0 commit comments