mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 18:57:28 -07:00
BUG-1908: Made Greenshot recheck & add the external commands like Ms-Paint and Paint.NET if they are not deleted manually and not yet available. Also cleaned up some code.
This commit is contained in:
parent
35ed3b8d60
commit
6efc7796b8
49 changed files with 322 additions and 294 deletions
|
@ -38,8 +38,8 @@ namespace GreenshotConfluencePlugin {
|
|||
this.config = config;
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
void Button_OK_Click(object sender, RoutedEventArgs e) {
|
||||
|
||||
private void Button_OK_Click(object sender, RoutedEventArgs e) {
|
||||
DialogResult = true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,12 +35,12 @@ namespace GreenshotConfluencePlugin {
|
|||
DataContext = pagesToPick;
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
void PageListView_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e) {
|
||||
|
||||
private void PageListView_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e) {
|
||||
SelectionChanged();
|
||||
}
|
||||
|
||||
void SelectionChanged() {
|
||||
|
||||
private void SelectionChanged() {
|
||||
if (PageListView.HasItems && PageListView.SelectedItems.Count > 0) {
|
||||
confluenceUpload.SelectedPage = (Page)PageListView.SelectedItem;
|
||||
// Make sure the uploader knows we selected an already opened page
|
||||
|
@ -49,8 +49,8 @@ namespace GreenshotConfluencePlugin {
|
|||
confluenceUpload.SelectedPage = null;
|
||||
}
|
||||
}
|
||||
|
||||
void Page_Loaded(object sender, System.Windows.RoutedEventArgs e) {
|
||||
|
||||
private void Page_Loaded(object sender, System.Windows.RoutedEventArgs e) {
|
||||
SelectionChanged();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -110,8 +110,8 @@ namespace GreenshotConfluencePlugin {
|
|||
SearchTab.IsSelected = true;
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateSpaces() {
|
||||
|
||||
private void UpdateSpaces() {
|
||||
if (_spaces != null && DateTime.Now.AddMinutes(-60).CompareTo(_lastLoad) > 0) {
|
||||
// Reset
|
||||
_spaces = null;
|
||||
|
@ -125,7 +125,7 @@ namespace GreenshotConfluencePlugin {
|
|||
}
|
||||
}
|
||||
|
||||
void Upload_Click(object sender, RoutedEventArgs e) {
|
||||
private void Upload_Click(object sender, RoutedEventArgs e) {
|
||||
DialogResult = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue