[statusicon] Disable sync item on first run
This commit is contained in:
parent
01a605fd26
commit
87a848b77e
|
@ -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 ();
|
||||||
|
|
||||||
|
|
|
@ -192,6 +192,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