Skip to content

Commit 399a309

Browse files
committed
Don't delete from SD on completion, fix status display
1 parent 47f8805 commit 399a309

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

Rsc/PIMSync_Rsc.rcp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ DATA "code" ID 1 "code0001.bin"
88
GENERATEHEADER "Rsc/PIMSync_Rsc.h"
99

1010
APPLICATIONICONNAME ID 1000 "PIMSync"
11-
VERSION ID 1 "0.1"
11+
VERSION ID 1 "0.2"
1212

1313
RESETAUTOID 1000
1414

@@ -89,6 +89,6 @@ BEGIN
8989
BUTTON "OK" ID AboutOKButton AT (55 142 40 12)
9090
FORMBITMAP AT (50 86) BITMAP PIMSyncBitmapFamily
9191
LABEL "PIMSync allows you to use the SD\rcard to transfer the memo, address\rbook, todo and datebook databases\rfrom your Palm OS device and back.\rYou can use this workflow with\rprograms like J-Pilot on the PC." ID AboutDescriptionLabel AT (5 16)
92-
LABEL "V: 0.1" ID AboutVersionLabel AT (132 145)
92+
LABEL "V: 0.2" ID AboutVersionLabel AT (132 145)
9393
END
9494

Src/Main.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ static void CopyFromSDDir( UInt16 volRefNum, Char* dir, Messager Message, UInt32
270270

271271
Char fileMsg[30];
272272
StrPrintF(fileMsg, "Copied %s", fileName);
273-
StatusMessage(fileMsg, 0);
273+
Message(fileMsg, 0);
274274

275275
err = DmDatabaseInfo( card, id, NULL, &attr, NULL, &crDate,
276276
&modDate, NULL, NULL, NULL, NULL, NULL, NULL );
@@ -311,14 +311,13 @@ static void CopyFromSDDir( UInt16 volRefNum, Char* dir, Messager Message, UInt32
311311
if ( copiedP != NULL )
312312
*copiedP = true;
313313
}
314-
315-
VFSFileDelete( volRefNum, fileName );
316314
}
315+
Message("Done", cookie);
317316
}
318317

319318
static void StatusMessage( const Char* s, UInt32 cookie )
320319
{
321-
RectangleType display = { { 10, 120 }, { 140, 20 } };
320+
RectangleType display = { { 10, 120 }, { 150, 20 } };
322321
WinEraseRectangle( &display, 0 );
323322

324323
Char statusMsg[50];
@@ -348,7 +347,7 @@ void CopyToSD( UInt16 vol, Messager Message, UInt32 cookie, Boolean* copiedP, Bo
348347
for ( UInt32 i = 0; i < NUM_DBS; i++) {
349348
copyDBToCard ( volRefNum, dbsToCopy[i], "Copying", i, NUM_DBS);
350349
}
351-
StatusMessage("Done", 0);
350+
Message("Done", 0);
352351
}
353352
}
354353
}

0 commit comments

Comments
 (0)