[statusicon] Disable sync item on first run
This commit is contained in:
parent
e43763decd
commit
9db108de87
|
@ -128,6 +128,8 @@ namespace SparkleShare {
|
||||||
SparkleShare.Controller.GenerateKeyPair ();
|
SparkleShare.Controller.GenerateKeyPair ();
|
||||||
SparkleShare.Controller.AddKey ();
|
SparkleShare.Controller.AddKey ();
|
||||||
|
|
||||||
|
SparkleShare.Controller.FirstRun = false;
|
||||||
|
|
||||||
DeleteEvent += PreventClose;
|
DeleteEvent += PreventClose;
|
||||||
ShowServerForm ();
|
ShowServerForm ();
|
||||||
|
|
||||||
|
|
|
@ -193,6 +193,9 @@ namespace SparkleShare {
|
||||||
// Opens the wizard to add a new remote folder
|
// Opens the wizard to add a new remote folder
|
||||||
MenuItem sync_item = new MenuItem (_("Sync Remote Folder…"));
|
MenuItem sync_item = new MenuItem (_("Sync Remote Folder…"));
|
||||||
|
|
||||||
|
if (SparkleShare.Controller.FirstRun)
|
||||||
|
sync_item.Sensitive = false;
|
||||||
|
|
||||||
sync_item.Activated += delegate {
|
sync_item.Activated += delegate {
|
||||||
Application.Invoke (delegate {
|
Application.Invoke (delegate {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue