Changeset 1285 for trunk


Ignore:
Timestamp:
04/05/19 11:02:14 (5 years ago)
Author:
bln4
Message:

Upon login, if the user has requested an initial frame (by passing argument when starting Expeditee) then direct the logging in user to that frame.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/auth/Actions.java

    r1283 r1285  
    575575                Collection<Item> usernameFields = getByData(FrameIO.LoadFrame(Constants.FRAME_MULTIUSER1), "txtUsername");
    576576                usernameFields.forEach(usernameField -> usernameField.setText(username));
    577                                
     577               
     578                Frame requestedFrame = FrameIO.LoadFrame(Browser.getStartFrame());
    578579                Frame homeFrame = FrameIO.LoadFrame("home1");
    579                 DisplayController.setCurrentFrame(homeFrame == null ? oneFrame : homeFrame, false);
     580                Frame choice = requestedFrame != null ? requestedFrame : homeFrame != null ? homeFrame : oneFrame;
     581                DisplayController.setCurrentFrame(choice, false);
    580582        }       
    581583
Note: See TracChangeset for help on using the changeset viewer.