Skip to content

Commit

Permalink
Added a property that tells GR to automatically reload the last opene…
Browse files Browse the repository at this point in the history
…d file.
  • Loading branch information
Scott Gartner committed Dec 5, 2003
1 parent da03e2b commit 12ae8a5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions com/gallery/GalleryRemote/prefs/GalleryProperties.java
Expand Up @@ -168,6 +168,17 @@ public void setDimensionProperty( String key, Dimension d ) {
setProperty( key, ( (int) d.getWidth() ) + "," + ( (int) d.getHeight() ) );
}

/**
* getLoadLastMRU returns whether we should automatically load the
* last MRU file when GR starts. If this is true then we should try
* to load getMRUItem(0).
*
* @return true if we should load the last opened file.
*/
public boolean getLoadLastMRU () {
return(getBooleanProperty(LOAD_LAST_FILE, false));
}

/**
* getMRUCountProperty returns the Most Recently Used count (the number
* of MRU entries we should show in the menu.
Expand Down
1 change: 1 addition & 0 deletions com/gallery/GalleryRemote/prefs/PreferenceNames.java
Expand Up @@ -18,6 +18,7 @@ public interface PreferenceNames {
public static final String UI_LOCALE = "uiLocale";
public static final String MRU_COUNT = "mruCount";
public static final String MRU_BASE = "mruItem.";
public static final String LOAD_LAST_FILE = "loadLastMRU";

// Upload panel
public static final String RESIZE_BEFORE_UPLOAD = "resizeBeforeUpload";
Expand Down

0 comments on commit 12ae8a5

Please sign in to comment.