Preventing that the Photobucket login is shown while using the Dynamic-Destination picker "mouse-over".

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2505 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2013-02-20 12:02:37 +00:00
commit 652ca64e9f
3 changed files with 46 additions and 16 deletions

View file

@ -75,12 +75,16 @@ namespace GreenshotPhotobucketPlugin {
}
public override IEnumerable<IDestination> DynamicDestinations() {
List<string> albums = PhotobucketUtils.RetrievePhotobucketAlbums();
List<string> albums = null;
try {
albums = PhotobucketUtils.RetrievePhotobucketAlbums();
} catch {
}
if (albums == null || albums.Count == 0) {
yield break;
}
foreach(string album in albums) {
foreach (string album in albums) {
yield return new PhotobucketDestination(plugin, album);
}
}