From 0e3813c7ba6241461b294822759667036a223d5e Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Mon, 6 Feb 2012 14:53:02 +0100 Subject: [PATCH] controller: remove obsolete event --- SparkleShare/SparkleControllerBase.cs | 7 +------ SparkleShare/SparkleUI.cs | 5 +---- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/SparkleShare/SparkleControllerBase.cs b/SparkleShare/SparkleControllerBase.cs index b0b45403..42015f71 100755 --- a/SparkleShare/SparkleControllerBase.cs +++ b/SparkleShare/SparkleControllerBase.cs @@ -40,9 +40,6 @@ namespace SparkleShare { public double ProgressPercentage = 0.0; public string ProgressSpeed = ""; - public event OnQuitWhileSyncingHandler OnQuitWhileSyncing; - public delegate void OnQuitWhileSyncingHandler (); - public event FolderFetchedEventHandler FolderFetched; public delegate void FolderFetchedEventHandler (string [] warnings); @@ -776,6 +773,7 @@ namespace SparkleShare { process.StartInfo.UseShellExecute = false; process.StartInfo.FileName = "ssh-add"; process.StartInfo.Arguments = "\"" + key_file_path + "\""; + process.StartInfo.CreateNoWindow = true; process.Start (); process.WaitForExit (); @@ -1107,9 +1105,6 @@ namespace SparkleShare { repo.Status == SyncStatus.SyncDown || repo.IsBuffering) { - if (OnQuitWhileSyncing != null) - OnQuitWhileSyncing (); - return; } } diff --git a/SparkleShare/SparkleUI.cs b/SparkleShare/SparkleUI.cs index 96ec23f2..deb387da 100755 --- a/SparkleShare/SparkleUI.cs +++ b/SparkleShare/SparkleUI.cs @@ -63,12 +63,9 @@ namespace SparkleShare { Setup = new SparkleSetup (); Setup.Controller.ShowSetupPage (); } - - Program.Controller.OnQuitWhileSyncing += delegate { - // TODO: Pop up a warning when quitting whilst syncing - }; } + // Runs the application public void Run () {