[tomboy] When starting the AddinManager, only rebuild the registry if --debug has been passed.
- From: Sanford Armstrong <sharm src gnome org>
- To: svn-commits-list gnome org
- Subject: [tomboy] When starting the AddinManager, only rebuild the registry if --debug has been passed.
- Date: Mon, 4 May 2009 15:58:15 -0400 (EDT)
commit ea4a27042abcb8cfdfd09d187fa9a25ebbdb6673
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date: Mon May 4 12:55:58 2009 -0700
When starting the AddinManager, only rebuild the registry if --debug has been passed.
Otherwise, use Registry.Update. Provides crash-less upgrades from Mono.Addins 0.3 to 0.4 on Windows.
---
Tomboy/AddinManager.cs | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/Tomboy/AddinManager.cs b/Tomboy/AddinManager.cs
index f38c07f..fc2efa8 100644
--- a/Tomboy/AddinManager.cs
+++ b/Tomboy/AddinManager.cs
@@ -77,7 +77,11 @@ namespace Tomboy
Mono.Addins.AddinManager.AddinUnloaded += OnAddinUnloaded;
Mono.Addins.AddinManager.Initialize (tomboy_conf_dir);
UpgradeOldAddinConfig ();
- Mono.Addins.AddinManager.Registry.Rebuild (null);
+ if (Tomboy.Debugging) {
+ Mono.Addins.AddinManager.Registry.Rebuild (null);
+ } else {
+ Mono.Addins.AddinManager.Registry.Update (null);
+ }
Mono.Addins.AddinManager.AddExtensionNodeHandler ("/Tomboy/ApplicationAddins", OnApplicationAddinExtensionChanged);
// NOTE: A SyncServiceAddin is a specialization of an ApplicationAddin
Mono.Addins.AddinManager.AddExtensionNodeHandler ("/Tomboy/SyncServiceAddins", OnApplicationAddinExtensionChanged);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]