Changeset 1467 for trunk/src


Ignore:
Timestamp:
11/29/19 15:42:52 (4 years ago)
Author:
bnemhaus
Message:

UserSettings.ProfileName is now null if not set. This also effects UserSettings.HomeFrame as you can only point to profile frame 1 if it is set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/settings/UserSettings.java

    r1442 r1467  
    6969                String profileName = UserSettings.ProfileName.get();
    7070                        if(text.getText().indexOf(':') == -1 || !text.hasLink()) {
    71                                 if (!profileName.equals(ProfileManager.USER_NAME_FLAG)) {
     71                                //if (!profileName.equals(ProfileManager.USER_NAME_FLAG)) {
     72                                if (profileName != null) {
    7273                                        text.setLink(profileName + "1");
    7374                                }
     
    108109        public static final IntegerSetting TitlePosition = new IntegerSetting("Position of title item in frame (TODO: find whether this is x-offset or y-offset)", "TitlePosition", 150);
    109110               
    110         public static final StringSetting UserName = new StringSetting("User name", ProfileManager.USER_NAME_FLAG); // FrameIO.ConvertToValidFramesetName(System.getProperty("user.name"))
    111        
    112         public static final StringSetting ProfileName = new StringSetting("Profile name", ProfileManager.USER_NAME_FLAG);
     111        public static final StringSetting UserName = new StringSetting("User name", ProfileManager.USER_NAME_FLAG);
     112       
     113//      public static final StringSetting ProfileName = new StringSetting("Profile name", ProfileManager.USER_NAME_FLAG); // FrameIO.ConvertToValidFramesetName(System.getProperty("user.name"))
     114        public static final StringSetting ProfileName = new StringSetting("Profile name", null); // FrameIO.ConvertToValidFramesetName(System.getProperty("user.name"))
    113115               
    114116        public static final BooleanSetting AntiAlias = new BooleanSetting("Whether anti-aliasing should be enabled", "AntiAlias", false);
Note: See TracChangeset for help on using the changeset viewer.