summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-10-27 16:31:18 +0100
committeremkael <emkael@tlen.pl>2019-10-27 20:49:04 +0100
commitfb292fde3a9ca9ecb20a988861a416b9542642a6 (patch)
treeed83cef0cac59baeac9a7cf141915905846dfacc
parentb6822ca445074d0d7e9dfa30e0d65b86e7c30331 (diff)
Restoring window minimize button
-rw-r--r--spedytor/Form1.Designer.cs1
-rw-r--r--spedytor/Form1.cs1
2 files changed, 1 insertions, 1 deletions
diff --git a/spedytor/Form1.Designer.cs b/spedytor/Form1.Designer.cs
index c86364b..623e450 100644
--- a/spedytor/Form1.Designer.cs
+++ b/spedytor/Form1.Designer.cs
@@ -230,7 +230,6 @@
this.Controls.Add(this.lChooseDatabase);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
- this.MinimizeBox = false;
this.Name = "Form1";
this.Text = "Spedytor";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
diff --git a/spedytor/Form1.cs b/spedytor/Form1.cs
index 91f6ebe..e7ccd26 100644
--- a/spedytor/Form1.cs
+++ b/spedytor/Form1.cs
@@ -241,6 +241,7 @@ namespace spedytor
private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
{
this.Show();
+ this.WindowState = FormWindowState.Normal;
this.notifyIcon.Visible = false;
}