Skip to content

Commit

Permalink
Add Empty to dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
dotcomboom committed Oct 24, 2019
1 parent 08008c6 commit 51fd470
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
1 change: 1 addition & 0 deletions About.resx
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ SOFTWARE.</value>
<data name="ChangelogBox.Text" xml:space="preserve">
<value>0.9.8.1 - Malt:
+ Conditionals can now check if attributes are empty/non-existent properly
+ Empty option added to Add Conditional dialog

0.9.8 - Milkshake:
+ Double clicking any file while the editor is collapsed will open it with the default program/shell behavior
Expand Down
24 changes: 19 additions & 5 deletions AddConditional.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions AddConditional.vb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Public Class AddConditional
Public output = ""

Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
If Empty.Checked Then
Value.Text = ""
End If
Dim ineq = ""
If Yesnt.Checked Then
ineq = "!"
Expand Down Expand Up @@ -50,4 +53,8 @@ Public Class AddConditional
Me.Close()
End If
End Sub

Private Sub Empty_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Empty.CheckedChanged
Value.Enabled = (Not Empty.Checked)
End Sub
End Class

0 comments on commit 51fd470

Please sign in to comment.