Changeset 1295 for trunk


Ignore:
Timestamp:
04/08/19 13:32:00 (5 years ago)
Author:
bln4
Message:

The MailBay will now link to the expediteemail frameset if it exists and doesn't already link to it. (This would occur if you had not received a new message since last log in)

Location:
trunk/src/org/expeditee/auth
Files:
2 edited

Legend:

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

    r1292 r1295  
    9999        public static void ToggleBay() throws KeyStoreException, FileNotFoundException, NoSuchAlgorithmException, CertificateException, ClassNotFoundException, SQLException, IOException, ParseException {
    100100                if (!DisplayController.isMailMode()) {
     101                        MailBay.ensureLink();
    101102                        Mail.clear();
    102103                        AuthenticatorBrowser.getInstance().loadMailDatabase();
  • trunk/src/org/expeditee/auth/gui/MailBay.java

    r1280 r1295  
    154154        }
    155155       
     156        public static void ensureLink() {
     157                if (_mailLink.getLink() == null && FrameIO.canAccessFrame(MailBay.EXPEDITEE_MAIL_FRAMESET_NAME + 1)) {
     158                        _mailLink.setLink(MailBay.EXPEDITEE_MAIL_FRAMESET_NAME + 1);
     159                }
     160        }       
     161       
    156162        /** Updates the image buffer to reflect the current state of the mail bay. */
    157163        private synchronized static void updateBuffer(Colour background, Clip clip, Dimension size) {
     
    294300                        return items.toArray(new Text[] {});
    295301                }
    296         }       
     302        }
    297303}
Note: See TracChangeset for help on using the changeset viewer.