mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
BUG-1741: Improvements of the Confluence plug-in: don't show the page-picker if no pages are currently shown (in IE) and disable the search button while there is nothing to search for.
This commit is contained in:
parent
2c26d287ff
commit
026241f160
5 changed files with 24 additions and 10 deletions
|
@ -20,6 +20,7 @@
|
|||
*/
|
||||
using System;
|
||||
using Confluence;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace GreenshotConfluencePlugin {
|
||||
/// <summary>
|
||||
|
@ -29,9 +30,9 @@ namespace GreenshotConfluencePlugin {
|
|||
private static readonly log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(ConfluencePagePicker));
|
||||
private ConfluenceUpload confluenceUpload = null;
|
||||
|
||||
public ConfluencePagePicker(ConfluenceUpload confluenceUpload) {
|
||||
public ConfluencePagePicker(ConfluenceUpload confluenceUpload, List<Page> pagesToPick) {
|
||||
this.confluenceUpload = confluenceUpload;
|
||||
this.DataContext = ConfluenceUtils.GetCurrentPages();
|
||||
this.DataContext = pagesToPick;
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue