setup: enable Client ID in status icon after key has been created

This commit is contained in:
Hylke Bons 2013-05-26 13:44:57 +01:00
parent 4b61010e5e
commit 19bc986f79
2 changed files with 3 additions and 2 deletions

View file

@ -245,7 +245,8 @@ namespace SparkleShare {
SparkleKeys.ImportPrivateKey (key_pair [0]);
CurrentUser.PublicKey = File.ReadAllText (key_pair [1]);
FolderListChanged (); // FIXME: Hacky way to update status icon menu to show the key
}).Start ();
} else {

View file

@ -102,7 +102,7 @@ namespace SparkleShare {
public bool LinkCodeItemEnabled {
get {
return !Program.Controller.FirstRun;
return !string.IsNullOrEmpty (Program.Controller.CurrentUser.PublicKey);
}
}