about: Add link to debug log. #981
This commit is contained in:
parent
83f08666f2
commit
d971fef6f6
|
@ -145,6 +145,7 @@ namespace SparkleShare {
|
|||
SparkleLink website_link = new SparkleLink ("Website", Controller.WebsiteLinkAddress);
|
||||
SparkleLink credits_link = new SparkleLink ("Credits", Controller.CreditsLinkAddress);
|
||||
SparkleLink report_problem_link = new SparkleLink ("Report a problem", Controller.ReportProblemLinkAddress);
|
||||
SparkleLink report_problem_link = new SparkleLink ("Debug log", Controller.DebugLogLinkAddress);
|
||||
|
||||
links_layout.PackStart (new Label (""), false, false, 143);
|
||||
links_layout.PackStart (website_link, false, false, 9);
|
||||
|
|
|
@ -39,6 +39,7 @@ namespace SparkleShare {
|
|||
private SparkleLink website_link;
|
||||
private SparkleLink credits_link;
|
||||
private SparkleLink report_problem_link;
|
||||
private SparkleLink debug_log_link;
|
||||
|
||||
|
||||
public SparkleAbout (IntPtr handle) : base (handle) { }
|
||||
|
@ -71,6 +72,11 @@ namespace SparkleShare {
|
|||
new PointF (this.credits_link.Frame.X + this.credits_link.Frame.Width + 10, 25),
|
||||
this.report_problem_link.Frame.Size);
|
||||
|
||||
this.debug_log_link = new SparkleLink ("Debug log", Controller.DebugLogLinkAddress);
|
||||
this.debug_log_link.Frame = new RectangleF (
|
||||
new PointF (this.report_problem_link.Frame.X + this.report_problem_link.Frame.Width + 10, 25),
|
||||
this.debug_log_link.Frame.Size);
|
||||
|
||||
this.hidden_close_button = new NSButton () {
|
||||
Frame = new RectangleF (0, 0, 0, 0),
|
||||
KeyEquivalentModifierMask = NSEventModifierMask.CommandKeyMask,
|
||||
|
@ -89,6 +95,7 @@ namespace SparkleShare {
|
|||
ContentView.AddSubview (this.website_link);
|
||||
ContentView.AddSubview (this.credits_link);
|
||||
ContentView.AddSubview (this.report_problem_link);
|
||||
ContentView.AddSubview (this.debug_log_link);
|
||||
}
|
||||
|
||||
Controller.HideWindowEvent += delegate {
|
||||
|
|
|
@ -36,6 +36,7 @@ namespace SparkleShare {
|
|||
public readonly string WebsiteLinkAddress = "http://www.sparkleshare.org/";
|
||||
public readonly string CreditsLinkAddress = "http://www.github.com/hbons/SparkleShare/tree/master/legal/AUTHORS";
|
||||
public readonly string ReportProblemLinkAddress = "http://www.github.com/hbons/SparkleShare/issues";
|
||||
public readonly string DebugLogLinkAddress = "file://" + Program.Controller.ConfigPath;
|
||||
|
||||
public string RunningVersion {
|
||||
get {
|
||||
|
|
|
@ -94,6 +94,12 @@ namespace SparkleShare {
|
|||
}
|
||||
}
|
||||
|
||||
public string ConfigPath {
|
||||
get {
|
||||
return this.config.LogFilePath;
|
||||
}
|
||||
}
|
||||
|
||||
public SparkleUser CurrentUser {
|
||||
get {
|
||||
return this.config.User;
|
||||
|
|
|
@ -120,6 +120,7 @@ namespace SparkleShare {
|
|||
SparkleLink website_link = new SparkleLink ("Website", Controller.WebsiteLinkAddress);
|
||||
SparkleLink credits_link = new SparkleLink ("Credits", Controller.CreditsLinkAddress);
|
||||
SparkleLink report_problem_link = new SparkleLink ("Report a problem", Controller.ReportProblemLinkAddress);
|
||||
SparkleLink debug_log_link = new SparkleLink ("Debig log", Controller.DebugLogLinkAddress);
|
||||
|
||||
Canvas canvas = new Canvas ();
|
||||
|
||||
|
@ -151,6 +152,11 @@ namespace SparkleShare {
|
|||
Canvas.SetLeft (report_problem_link, 289 + website_link.ActualWidth + credits_link.ActualWidth + 115);
|
||||
Canvas.SetTop (report_problem_link, 222);
|
||||
|
||||
canvas.Children.Add (debug_log_link);
|
||||
Canvas.SetLeft (debug_log_link, 289 + website_link.ActualWidth + credits_link.ActualWidth +
|
||||
report_problem_link.ActualWidth + 180);
|
||||
Canvas.SetTop (debug_log_link, 222);
|
||||
|
||||
Content = canvas;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue