Skip to content

Commit

Permalink
More enabling-disabling of UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Luc Paour committed Sep 22, 2002
1 parent dffa820 commit 4ecf28c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions com/gallery/GalleryRemote/MainFrame.java
Expand Up @@ -237,14 +237,15 @@ void resetUIState() {
fetch.setEnabled( !mInProgress );
gallery.setEnabled( !mInProgress );
newGallery.setEnabled( !mInProgress );
album.setEnabled( !mInProgress );
username.setEnabled( !mInProgress );
password.setEnabled( !mInProgress );

// if the selected album is uploading, disable everything
browse.setEnabled( ! mInProgress && mAlbum != null);
pictureInspector.setEnabled( ! mInProgress && mAlbum != null);
picturesList.setEnabled( ! mInProgress && mAlbum != null);
boolean enabled = ! mInProgress && mAlbum != null && album.getModel().getSize() >= 1;
browse.setEnabled( enabled );
pictureInspector.setEnabled( enabled );
picturesList.setEnabled( enabled );
album.setEnabled( enabled );

if ( mAlbum == null) {
pictureInspector.setPictures( (Object[]) null );
Expand Down Expand Up @@ -292,6 +293,7 @@ private void updateGalleryParams() {
}

updateAlbumCombo();
resetUIState();
}


Expand Down

0 comments on commit 4ecf28c

Please sign in to comment.