Skip to content
This repository has been archived by the owner on Nov 27, 2021. It is now read-only.

Commit

Permalink
Issue #171 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwouaiebe committed Jul 8, 2021
1 parent 924d646 commit cb7eeb0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion buildNumber.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "buildNumber" : "00104"}
{ "buildNumber" : "00130"}
26 changes: 16 additions & 10 deletions src/core/FileLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ Changes:
- Issue #120 : Review the UserInterface
-v2.2.0:
- Issue #129 : Add an indicator when the travel is modified and not saved
-v2.3.0:
- Issue #171 : Add a warning when opening a file with invalid version
Doc reviewed 20200801
Tests ...
*/
Expand Down Expand Up @@ -169,17 +171,21 @@ function ourNewFileLoader ( ) {
}
return;
}
if ( mustMerge ) {
newFileCompactor ( ).decompressMerge ( fileContent );
}
else {
theProfileWindowsManager.deleteAllProfiles ( );
newFileCompactor ( ).decompress ( fileContent );
try {
if ( mustMerge ) {
newFileCompactor ( ).decompressMerge ( fileContent );
}
else {
theProfileWindowsManager.deleteAllProfiles ( );
newFileCompactor ( ).decompress ( fileContent );
}
myDisplay ( );
if ( ! mustMerge ) {
theMouseUI.saveStatus = SAVE_STATUS.saved;
}
}

myDisplay ( );
if ( ! mustMerge ) {
theMouseUI.saveStatus = SAVE_STATUS.saved;
catch ( err ) {
theErrorsUI.showError ( 'An error occurs when reading the file : ' + err.message );
}

};
Expand Down

0 comments on commit cb7eeb0

Please sign in to comment.