[statusicon] Disable sync item on first run

This commit is contained in:
Hylke Bons 2010-11-20 23:13:41 +00:00
parent 567694c675
commit 56488eac06
2 changed files with 5 additions and 0 deletions

View file

@ -128,6 +128,8 @@ namespace SparkleShare {
SparkleShare.Controller.GenerateKeyPair ();
SparkleShare.Controller.AddKey ();
SparkleShare.Controller.FirstRun = false;
DeleteEvent += PreventClose;
ShowServerForm ();

View file

@ -192,6 +192,9 @@ namespace SparkleShare {
// Opens the wizard to add a new remote folder
MenuItem sync_item = new MenuItem (_("Sync Remote Folder…"));
if (SparkleShare.Controller.FirstRun)
sync_item.Sensitive = false;
sync_item.Activated += delegate {
Application.Invoke (delegate {