Changeset 1227 for trunk/src/org/expeditee/gui/FrameIO.java
- Timestamp:
- 01/31/19 16:34:06 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/FrameIO.java
r1219 r1227 43 43 import org.expeditee.auth.Authenticator; 44 44 import org.expeditee.auth.EncryptedExpReader; 45 import org.expeditee.auth.Encrypted ProfileExpWriter;45 import org.expeditee.auth.EncryptedExpWriter; 46 46 import org.expeditee.auth.gui.MailBay; 47 47 import org.expeditee.io.Conversion; … … 92 92 STATISTICS_DIR = PARENT_FOLDER + "statistics" + File.separator; 93 93 LOGS_DIR = PARENT_FOLDER + "logs" + File.separator; 94 SHARED_BY_ME_FRAMESETS = PARENT_FOLDER + "framesets-shared-by-me" + File.separator; 95 SHARED_WITH_ME_FRAMESETS = PARENT_FOLDER + "framesets-shared-with-me" + File.separator; 94 96 } 95 97 … … 125 127 126 128 public static String STATISTICS_DIR; 129 130 public static String SHARED_BY_ME_FRAMESETS; 131 132 public static String SHARED_WITH_ME_FRAMESETS; 127 133 128 134 public static String LOGS_DIR; … … 475 481 if (fullPath.endsWith(ExpReader.EXTENTION)) { 476 482 if (EncryptedExpReader.isEncryptedExpediteeFile(fullPath)) { 477 final boolean isProfile = frameName.startsWith(UserSettings.UserName.get()); 478 reader = new EncryptedExpReader(frameName, isProfile); 483 //final boolean isProfile = frameName.startsWith(UserSettings.UserName.get()); 484 //reader = new EncryptedExpReader(frameName, isProfile); 485 reader = new EncryptedExpReader(frameName); 479 486 } else { 480 487 reader = new ExpReader(frameName); … … 1006 1013 // if its a new frame or an existing Exp frame... 1007 1014 if (fullPath == null || fullPath.endsWith(ExpReader.EXTENTION)) { 1008 //Frame currentFrame = DisplayController.getCurrentFrame();1009 1015 if (UserSettings.Authenticated.get() && 1010 toSave.getN ame().startsWith(UserSettings.UserName.get())&&1011 toSave.get Number() != Authenticator.PUBLIC_KEY_FRAME) {1012 writer = new Encrypted ProfileExpWriter();1016 toSave.getNumber() != Authenticator.PUBLIC_KEY_FRAME && 1017 toSave.getEncryptionLabel() != null) { 1018 writer = new EncryptedExpWriter(toSave.getEncryptionLabel()); 1013 1019 savedVersion = EncryptedExpReader.getVersion(fullPath); 1014 1020 } else {
Note:
See TracChangeset
for help on using the changeset viewer.