Ignore:
Timestamp:
04/16/19 10:41:54 (5 years ago)
Author:
bln4
Message:

Fixed exceptions being thrown incorrectly in following situations:

Incorrect login
Existing account on account creation
ToggleBay action run but not logged in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/FrameIO.java

    r1303 r1316  
    376376                        List<String> directoriesToSearch = FolderSettings.FrameDirs.getAbsoluteDirs();
    377377                       
    378                         if (AuthenticatorBrowser.Authenticated) {
    379                                 // if we are running Expeditee Authenticated, consult user profile as location for framesets first
    380                                 String profilePath = FrameIO.PROFILE_PATH + UserSettings.UserName.get() + File.separator;
    381                                 directoriesToSearch.add(0, profilePath);
    382                         }
     378//                      if (AuthenticatorBrowser.Authenticated) {
     379//                              // if we are running Expeditee Authenticated, consult user profile as location for framesets first
     380//                              String profilePath = FrameIO.PROFILE_PATH + UserSettings.UserName.get() + File.separator;
     381//                              directoriesToSearch.add(0, profilePath);
     382//                      }
    383383                       
    384384                        for (String path : directoriesToSearch) {
     
    425425                list.deleteCharAt(list.length() - 1);
    426426                return list.toString();
     427        }
     428       
     429        /**
     430         * Gets a list of all the profiles available to the user
     431         *
     432         * @return a list containing all the available framesets on separate lines
     433         */
     434        public static List<String> getProfilesList() {
     435                List<File> potentialProfiles = Arrays.asList(new File(FrameIO.PROFILE_PATH).listFiles());
     436                potentialProfiles.removeIf(file -> !file.isDirectory());
     437                return potentialProfiles.stream().map(dir -> dir.getName()).collect(Collectors.toList());
    427438        }
    428439
Note: See TracChangeset for help on using the changeset viewer.