Changeset 1538


Ignore:
Timestamp:
11/02/20 15:39:02 (4 years ago)
Author:
bnemhaus
Message:

Added function to FrameIO for more cleanly creating (specifically) the default profile. This was previously done by passing UserSettings.DEFAULT_PROFILE_NAME to FrameIO.CreateNewProfile

Location:
trunk/src/org
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/apollo/ApolloSystem.java

    r1515 r1538  
    155155                if (profile == null) {
    156156                        try {
    157                                 profile = FrameIO.CreateNewProfile(UserSettings.DEFAULT_PROFILE_NAME, null, null);
     157                                profile = FrameIO.CreateNewDefaultProfile();
    158158                        } catch (Exception e) {
    159159                                e.printStackTrace();
  • trunk/src/org/expeditee/gui/FrameUtils.java

    r1511 r1538  
    16441644                                        FrameIO.changeParentAndSubFolders(FrameIO.PARENT_FOLDER);
    16451645                                        UserSettings.setupDefaultFolders();
    1646                                         defaultFrame = FrameIO.CreateNewProfile(UserSettings.DEFAULT_PROFILE_NAME, null, null);
     1646                                        defaultFrame = FrameIO.CreateNewDefaultProfile();
    16471647                                        UserSettings.UserName.set(existingUsername);
    16481648                                        FrameIO.changeParentAndSubFolders(FrameIO.PARENT_FOLDER);
Note: See TracChangeset for help on using the changeset viewer.