[tomboy: 1/2] Changes default Export Linked Notes to false. Bug 688187



commit e755059a64bffcd99b72811cf16814ba15f717c2
Author: Jared Jennings <jared jaredjennings org>
Date:   Mon Nov 26 12:04:18 2012 -0600

    Changes default Export Linked Notes to false. Bug 688187
    
    This is not a per-note setting, but is system wide.
    I'm choosing not always uncheck the option as that could
    greatly change the user experience. In this case the user should mentally know
    that they enabled this option.

 Tomboy/Addins/ExportToHtml/ExportToHtmlDialog.cs |    6 ++++++
 Tomboy/Preferences.cs                            |    2 +-
 data/tomboy.schemas.in                           |    2 +-
 3 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/Tomboy/Addins/ExportToHtml/ExportToHtmlDialog.cs b/Tomboy/Addins/ExportToHtml/ExportToHtmlDialog.cs
index bb2607d..426a94b 100644
--- a/Tomboy/Addins/ExportToHtml/ExportToHtmlDialog.cs
+++ b/Tomboy/Addins/ExportToHtml/ExportToHtmlDialog.cs
@@ -36,6 +36,7 @@ public ExportToHtmlDialog (string default_file) :
 
 			ShowAll ();
 			LoadPreferences (default_file);
+			SetExportLinkedAllSensitivity ();
 		}
 
 		public bool ExportLinked
@@ -81,6 +82,11 @@ public ExportToHtmlDialog (string default_file) :
 
 		protected void OnExportLinkedToggled (object sender, EventArgs args)
 		{
+			SetExportLinkedAllSensitivity ();
+		}
+
+		protected void SetExportLinkedAllSensitivity ()
+		{
 			if (export_linked.Active)
 				export_linked_all.Sensitive = true;
 			else
diff --git a/Tomboy/Preferences.cs b/Tomboy/Preferences.cs
index afb331d..ba09d1a 100644
--- a/Tomboy/Preferences.cs
+++ b/Tomboy/Preferences.cs
@@ -122,7 +122,7 @@ namespace Tomboy
 				return "disabled";
 
 			case EXPORTHTML_EXPORT_LINKED:
-				return true;
+				return false;
 
 			case EXPORTHTML_EXPORT_LINKED_ALL:
 				return false;
diff --git a/data/tomboy.schemas.in b/data/tomboy.schemas.in
index 9e3bced..b031397 100644
--- a/data/tomboy.schemas.in
+++ b/data/tomboy.schemas.in
@@ -387,7 +387,7 @@
       <applyto>/apps/tomboy/export_html/export_linked</applyto>
       <owner>tomboy</owner>
       <type>bool</type>
-      <default>true</default>
+      <default>false</default>
       <locale name="C">
          <short>HTML Export Linked Notes</short>
          <long>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]