From 9c21474c49cf1cd4b01f69634dd27dd3b29fbbbf Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Thu, 6 Dec 2012 19:33:39 +0000 Subject: [PATCH] clean up a bit --- SparkleLib/SparkleConfig.cs | 36 +++++++++++++-------------- SparkleShare/Mac/SparkleMacWatcher.cs | 3 ++- SparkleShare/Mac/SparkleShare.csproj | 1 - 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/SparkleLib/SparkleConfig.cs b/SparkleLib/SparkleConfig.cs index 637f4525..fdc34b9a 100755 --- a/SparkleLib/SparkleConfig.cs +++ b/SparkleLib/SparkleConfig.cs @@ -25,7 +25,7 @@ namespace SparkleLib { public class SparkleConfig : XmlDocument { public static SparkleConfig DefaultConfig; - public static bool DebugMode = false; + public static bool DebugMode = true; public string FullPath; public string TmpPath; @@ -291,23 +291,6 @@ namespace SparkleLib { } - private XmlNode GetFolder (string name) - { - return SelectSingleNode (string.Format ("/sparkleshare/folder[name=\"{0}\"]", name)); - } - - - private string GetFolderValue (string name, string key) - { - XmlNode folder = GetFolder(name); - - if ((folder != null) && (folder [key] != null)) - return folder [key].InnerText; - else - return null; - } - - public string GetConfigOption (string name) { XmlNode node = SelectSingleNode ("/sparkleshare/" + name); @@ -339,6 +322,23 @@ namespace SparkleLib { } + private XmlNode GetFolder (string name) + { + return SelectSingleNode (string.Format ("/sparkleshare/folder[name=\"{0}\"]", name)); + } + + + private string GetFolderValue (string name, string key) + { + XmlNode folder = GetFolder(name); + + if ((folder != null) && (folder [key] != null)) + return folder [key].InnerText; + else + return null; + } + + private void Save () { if (!File.Exists (FullPath)) diff --git a/SparkleShare/Mac/SparkleMacWatcher.cs b/SparkleShare/Mac/SparkleMacWatcher.cs index 26a42ff8..6642918f 100755 --- a/SparkleShare/Mac/SparkleMacWatcher.cs +++ b/SparkleShare/Mac/SparkleMacWatcher.cs @@ -1,8 +1,9 @@ // Originally taken from: // https://github.com/jesse99/Continuum/blob/master/source/shared/DirectoryWatcher.cs // Modified to use MonoMac and integrate into SparkleShare - +// // Copyright (C) 2008 Jesse Jones +// Copyright (C) 2012 Hylke Bons // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the diff --git a/SparkleShare/Mac/SparkleShare.csproj b/SparkleShare/Mac/SparkleShare.csproj index 662195a7..616b08bb 100644 --- a/SparkleShare/Mac/SparkleShare.csproj +++ b/SparkleShare/Mac/SparkleShare.csproj @@ -46,7 +46,6 @@ -