mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-05 20:54:31 +13:00
Merge pull request #535 from ElectricDanDan/master
#532: Filename text length will now check/uncheck 'Filename filter' chec...
This commit is contained in:
commit
add9ff9493
2 changed files with 7 additions and 0 deletions
2
ShareX.HistoryLib/HistoryForm.Designer.cs
generated
2
ShareX.HistoryLib/HistoryForm.Designer.cs
generated
|
@ -97,6 +97,7 @@ private void InitializeComponent()
|
|||
//
|
||||
resources.ApplyResources(this.txtFilenameFilter, "txtFilenameFilter");
|
||||
this.txtFilenameFilter.Name = "txtFilenameFilter";
|
||||
this.txtFilenameFilter.TextChanged += new System.EventHandler(this.txtFilenameFilter_TextChanged);
|
||||
//
|
||||
// cbFilenameFilterMethod
|
||||
//
|
||||
|
@ -253,6 +254,7 @@ private void InitializeComponent()
|
|||
//
|
||||
// HistoryForm
|
||||
//
|
||||
this.AcceptButton = this.btnApplyFilters;
|
||||
resources.ApplyResources(this, "$this");
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.lvHistory);
|
||||
|
|
|
@ -330,6 +330,11 @@ private void lvHistory_KeyDown(object sender, KeyEventArgs e)
|
|||
e.Handled = true;
|
||||
}
|
||||
|
||||
private void txtFilenameFilter_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
cbFilenameFilter.Checked = txtFilenameFilter.TextLength > 0;
|
||||
}
|
||||
|
||||
#endregion Form events
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue