From 9db108de87e1f15506508ae53a0c019367dfc821 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 20 Nov 2010 23:13:41 +0000 Subject: [PATCH] [statusicon] Disable sync item on first run --- SparkleShare/SparkleIntro.cs | 2 ++ SparkleShare/SparkleStatusIcon.cs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/SparkleShare/SparkleIntro.cs b/SparkleShare/SparkleIntro.cs index bac076ad..23b7460b 100644 --- a/SparkleShare/SparkleIntro.cs +++ b/SparkleShare/SparkleIntro.cs @@ -128,6 +128,8 @@ namespace SparkleShare { SparkleShare.Controller.GenerateKeyPair (); SparkleShare.Controller.AddKey (); + SparkleShare.Controller.FirstRun = false; + DeleteEvent += PreventClose; ShowServerForm (); diff --git a/SparkleShare/SparkleStatusIcon.cs b/SparkleShare/SparkleStatusIcon.cs index af377d4e..1883ce94 100644 --- a/SparkleShare/SparkleStatusIcon.cs +++ b/SparkleShare/SparkleStatusIcon.cs @@ -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 {