setup: enable Client ID in status icon after key has been created
This commit is contained in:
parent
4e817aa635
commit
6bb1cd64ff
|
@ -245,6 +245,7 @@ namespace SparkleShare {
|
||||||
SparkleKeys.ImportPrivateKey (key_pair [0]);
|
SparkleKeys.ImportPrivateKey (key_pair [0]);
|
||||||
|
|
||||||
CurrentUser.PublicKey = File.ReadAllText (key_pair [1]);
|
CurrentUser.PublicKey = File.ReadAllText (key_pair [1]);
|
||||||
|
FolderListChanged (); // FIXME: Hacky way to update status icon menu to show the key
|
||||||
|
|
||||||
}).Start ();
|
}).Start ();
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
public bool LinkCodeItemEnabled {
|
public bool LinkCodeItemEnabled {
|
||||||
get {
|
get {
|
||||||
return !Program.Controller.FirstRun;
|
return !string.IsNullOrEmpty (Program.Controller.CurrentUser.PublicKey);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue