Commits

Craig Phillips committed d2f3cc1

Fixed bug where after hashing once with Base64 encoded output, attempting
to hash again with Hex output would continue to display Base64 encoded output.

Comments (0)

Files changed (1)

HashIt/MainForm.cs

                 SetFormState(false);
                 completedHashes = 0;
                 toolStripStatusLabel.Text = "";
-                if (optBase64Output.Checked) hexencode = false;
-                if (tabControl.SelectedIndex == 0)
-                {
-                    filehash = false;
-                }
-                else
-                {
-                    filehash = true;
-                }
+                hexencode = !optBase64Output.Checked;
+                filehash = tabControl.SelectedIndex != 0;
 
                 timer = Stopwatch.StartNew();