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)
|
public SparkleLabel (string label, NSTextAlignment alignment)
|
||||||
{
|
{
|
||||||
|
if (!string.IsNullOrEmpty (label))
|
||||||
|
StringValue = label;
|
||||||
|
|
||||||
Alignment = alignment;
|
Alignment = alignment;
|
||||||
StringValue = label;
|
|
||||||
BackgroundColor = NSColor.WindowBackground;
|
BackgroundColor = NSColor.WindowBackground;
|
||||||
Bordered = false;
|
Bordered = false;
|
||||||
Editable = false;
|
Editable = false;
|
||||||
|
|
|
@ -37,6 +37,8 @@ namespace SparkleShare {
|
||||||
private NSTextField header_text_field, description_text_field;
|
private NSTextField header_text_field, description_text_field;
|
||||||
|
|
||||||
|
|
||||||
|
public SparkleSetupWindow (IntPtr handle) : base (handle) { }
|
||||||
|
|
||||||
public SparkleSetupWindow () : base ()
|
public SparkleSetupWindow () : base ()
|
||||||
{
|
{
|
||||||
SetFrame (new RectangleF (0, 0, 640, 420), true);
|
SetFrame (new RectangleF (0, 0, 640, 420), true);
|
||||||
|
@ -121,7 +123,7 @@ namespace SparkleShare {
|
||||||
button.SizeToFit ();
|
button.SizeToFit ();
|
||||||
button.Frame = new RectangleF (Frame.Width - 30 - 15 - (105 * (i - 1)) - button.Frame.Width,
|
button.Frame = new RectangleF (Frame.Width - 30 - 15 - (105 * (i - 1)) - button.Frame.Width,
|
||||||
12, button.Frame.Width + 30, 32);
|
12, button.Frame.Width + 30, 32);
|
||||||
x += 15;
|
x += 22;
|
||||||
}
|
}
|
||||||
|
|
||||||
button.Font = SparkleUI.Font;
|
button.Font = SparkleUI.Font;
|
||||||
|
|
Loading…
Reference in a new issue