summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <sr55.hb@outlook.com>2009-07-05 16:42:33 +0000
committersr55 <sr55.hb@outlook.com>2009-07-05 16:42:33 +0000
commit57d0985f2d9f377b29e55369cc3a2cae107410c8 (patch)
treea74092e1236cdcab3712261655f279c5731e7140 /win
parent40b0985abcaea7a7d45676edfb0f472ff356694e (diff)
WinGui:
- Minor UI fixes related to update checking and window maximize / scrolling git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2667 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win')
-rw-r--r--win/C#/frmMain.Designer.cs8
-rw-r--r--win/C#/frmMain.cs5
2 files changed, 6 insertions, 7 deletions
diff --git a/win/C#/frmMain.Designer.cs b/win/C#/frmMain.Designer.cs
index 4c19ff411..29a0f87d2 100644
--- a/win/C#/frmMain.Designer.cs
+++ b/win/C#/frmMain.Designer.cs
@@ -1291,16 +1291,18 @@ namespace Handbrake
//
// lbl_encode
//
+ this.lbl_encode.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbl_encode.Name = "lbl_encode";
- this.lbl_encode.Size = new System.Drawing.Size(23, 17);
+ this.lbl_encode.Size = new System.Drawing.Size(28, 17);
this.lbl_encode.Text = "{0}";
//
// lbl_updateCheck
//
this.lbl_updateCheck.BackColor = System.Drawing.Color.Transparent;
this.lbl_updateCheck.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
+ this.lbl_updateCheck.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbl_updateCheck.Name = "lbl_updateCheck";
- this.lbl_updateCheck.Size = new System.Drawing.Size(125, 17);
+ this.lbl_updateCheck.Size = new System.Drawing.Size(139, 17);
this.lbl_updateCheck.Text = "Checking for Updates ...";
this.lbl_updateCheck.Visible = false;
//
@@ -1556,7 +1558,6 @@ namespace Handbrake
this.AllowDrop = true;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.AutoScroll = true;
this.ClientSize = new System.Drawing.Size(1000, 582);
this.Controls.Add(this.labelStaticSource);
this.Controls.Add(this.labelSource);
@@ -1573,7 +1574,6 @@ namespace Handbrake
this.DoubleBuffered = true;
this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
- this.MaximizeBox = false;
this.Name = "frmMain";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "HandBrake";
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index 69e850a3a..1b215b396 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -389,6 +389,7 @@ namespace Handbrake
}
private void mnu_UpdateCheck_Click(object sender, EventArgs e)
{
+ lbl_updateCheck.Visible = true;
Main.BeginCheckForUpdates(new AsyncCallback(updateCheckDoneMenu), false);
}
private void updateCheckDoneMenu(IAsyncResult result)
@@ -399,14 +400,12 @@ namespace Handbrake
Invoke(new MethodInvoker(() => updateCheckDoneMenu(result)));
return;
}
-
UpdateCheckInformation info;
-
try
{
// Get the information about the new build, if any, and close the window
info = Main.EndCheckForUpdates(result);
- lbl_updateCheck.Visible = true;
+
if (info.NewVersionAvailable && info.BuildInformation != null)
{
frmUpdater updateWindow = new frmUpdater(info.BuildInformation);