mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 13:33:27 -07:00
Added Directory.Build.targets, this seems to help to import the target correctly. Removed chocolatey package again, as this seems to be the more stable approach (let's see if the build runs...)
This commit is contained in:
parent
5f242a79c8
commit
6831505ead
24 changed files with 175 additions and 186 deletions
|
@ -25,15 +25,15 @@ using System.Linq;
|
|||
using System.Windows;
|
||||
using GreenshotPlugin.IniFile;
|
||||
|
||||
namespace GreenshotConfluencePlugin {
|
||||
namespace GreenshotConfluencePlugin.Forms {
|
||||
public partial class ConfluenceSearch
|
||||
{
|
||||
private static readonly ConfluenceConfiguration ConfluenceConfig = IniConfig.GetIniSection<ConfluenceConfiguration>();
|
||||
private readonly ConfluenceUpload _confluenceUpload;
|
||||
|
||||
public IEnumerable<Confluence.Space> Spaces => _confluenceUpload.Spaces;
|
||||
public IEnumerable<Space> Spaces => _confluenceUpload.Spaces;
|
||||
|
||||
public ObservableCollection<Confluence.Page> Pages { get; } = new ObservableCollection<Confluence.Page>();
|
||||
public ObservableCollection<Page> Pages { get; } = new ObservableCollection<Page>();
|
||||
|
||||
public ConfluenceSearch(ConfluenceUpload confluenceUpload) {
|
||||
_confluenceUpload = confluenceUpload;
|
||||
|
@ -56,7 +56,7 @@ namespace GreenshotConfluencePlugin {
|
|||
|
||||
private void SelectionChanged() {
|
||||
if (PageListView.HasItems && PageListView.SelectedItems.Count > 0) {
|
||||
_confluenceUpload.SelectedPage = (Confluence.Page)PageListView.SelectedItem;
|
||||
_confluenceUpload.SelectedPage = (Page)PageListView.SelectedItem;
|
||||
} else {
|
||||
_confluenceUpload.SelectedPage = null;
|
||||
}
|
||||
|
@ -86,7 +86,7 @@ namespace GreenshotConfluencePlugin {
|
|||
SelectionChanged();
|
||||
}
|
||||
|
||||
private void searchText_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e) {
|
||||
private void SearchText_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e) {
|
||||
Search.IsEnabled = !string.IsNullOrEmpty(searchText.Text);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue