mac: some fixes for the ui with new configuration

This commit is contained in:
Hylke Bons 2011-05-26 20:51:00 +01:00
parent 109f75aee9
commit 15073bb5b3
2 changed files with 3 additions and 10 deletions

View file

@ -71,13 +71,7 @@ namespace SparkleShare {
UserInfoForm.CellSize = new SizeF (280, 22);
UserInfoForm.IntercellSpacing = new SizeF (4, 4);
// TODO: Move to Controller.WriteDefaultConfig
string full_name = new UnixUserInfo (UnixEnvironment.UserName).RealName;
if (string.IsNullOrEmpty (full_name))
full_name = "";
UserInfoForm.Cells [0].StringValue = full_name.TrimEnd (",".ToCharArray());;
UserInfoForm.Cells [0].StringValue = SparkleShare.Controller.UserName;
UserInfoForm.Cells [1].StringValue = SparkleShare.Controller.UserEmail;
ContinueButton = new NSButton () {
@ -88,8 +82,7 @@ namespace SparkleShare {
ContinueButton.Activated += delegate {
SparkleShare.Controller.UserName = UserInfoForm.Cells [0].StringValue.Trim ();
SparkleShare.Controller.UserEmail = UserInfoForm.Cells [1].StringValue.Trim ();
SparkleShare.Controller.GenerateKeyPair ();
SparkleShare.Controller.FirstRun = false;
SparkleShare.Controller.GenerateKeyPair ();
SparkleUI.StatusIcon.CreateMenu ();
InvokeOnMainThread (delegate {

View file

@ -475,7 +475,7 @@ namespace SparkleShare {
SparkleRepoBase repo = null;
if (backend.Equals ("Git")) { Console.WriteLine ("Git: " + folder_path);
if (backend.Equals ("Git")) {
repo = new SparkleRepoGit (folder_path, SparkleBackend.DefaultBackend);
} else if (backend.Equals ("Hg")) {