setup: fix freeze when pressing the Try Again button
This commit is contained in:
parent
e0fd85b5dd
commit
abc6f96f48
|
@ -845,8 +845,10 @@ namespace SparkleShare {
|
|||
|
||||
public SparkleLabel (string label, NSTextAlignment alignment)
|
||||
{
|
||||
Alignment = alignment;
|
||||
if (!string.IsNullOrEmpty (label))
|
||||
StringValue = label;
|
||||
|
||||
Alignment = alignment;
|
||||
BackgroundColor = NSColor.WindowBackground;
|
||||
Bordered = false;
|
||||
Editable = false;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue