setup: fix freeze when pressing the Try Again button

This commit is contained in:
Hylke Bons 2012-12-04 14:17:54 +00:00
parent e0fd85b5dd
commit abc6f96f48
2 changed files with 6 additions and 2 deletions

View file

@ -845,8 +845,10 @@ namespace SparkleShare {
public SparkleLabel (string label, NSTextAlignment alignment)
{
if (!string.IsNullOrEmpty (label))
StringValue = label;
Alignment = alignment;
StringValue = label;
BackgroundColor = NSColor.WindowBackground;
Bordered = false;
Editable = false;

View file

@ -37,6 +37,8 @@ namespace SparkleShare {
private NSTextField header_text_field, description_text_field;
public SparkleSetupWindow (IntPtr handle) : base (handle) { }
public SparkleSetupWindow () : base ()
{
SetFrame (new RectangleF (0, 0, 640, 420), true);
@ -121,7 +123,7 @@ namespace SparkleShare {
button.SizeToFit ();
button.Frame = new RectangleF (Frame.Width - 30 - 15 - (105 * (i - 1)) - button.Frame.Width,
12, button.Frame.Width + 30, 32);
x += 15;
x += 22;
}
button.Font = SparkleUI.Font;