mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 10:47:02 -07:00
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:
parent
9850096c3b
commit
652ca64e9f
3 changed files with 46 additions and 16 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue