[Monodevelop-patches-list] r2004 - in trunk/MonoDevelop/Core/src/Main/Base: . Commands
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Wed Oct 27 17:43:38 EDT 2004
Author: tberman
Date: 2004-10-27 17:43:38 -0400 (Wed, 27 Oct 2004)
New Revision: 2004
Modified:
trunk/MonoDevelop/Core/src/Main/Base/ChangeLog
trunk/MonoDevelop/Core/src/Main/Base/Commands/AutostartCommands.cs
Log:
fixy fixy
Modified: trunk/MonoDevelop/Core/src/Main/Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/ChangeLog 2004-10-27 20:04:33 UTC (rev 2003)
+++ trunk/MonoDevelop/Core/src/Main/Base/ChangeLog 2004-10-27 21:43:38 UTC (rev 2004)
@@ -1,3 +1,8 @@
+2004-10-27 Todd Berman <tberman at off.net>
+
+ * Commands/AutoStartCommands.cs: Fix the Load Previous Project on
+ Startup option.
+
2004-10-27 John Luke <john.luke at gmail.com>
* Internal/Parser/SharpAssemblyLayer/SharpAssemblyParameter.cs
Modified: trunk/MonoDevelop/Core/src/Main/Base/Commands/AutostartCommands.cs
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/Commands/AutostartCommands.cs 2004-10-27 20:04:33 UTC (rev 2003)
+++ trunk/MonoDevelop/Core/src/Main/Base/Commands/AutostartCommands.cs 2004-10-27 21:43:38 UTC (rev 2004)
@@ -59,12 +59,10 @@
// load previous combine
if ((bool)propertyService.GetProperty("SharpDevelop.LoadPrevProjectOnStartup", false)) {
- object recentOpenObj = propertyService.GetProperty("MonoDevelop.Gui.MainWindow.RecentOpen");
- if (recentOpenObj is MonoDevelop.Services.RecentOpen) {
- MonoDevelop.Services.RecentOpen recOpen = (MonoDevelop.Services.RecentOpen)recentOpenObj;
- if (recOpen.RecentProject != null && recOpen.RecentProject.Length > 0) {
- projectService.OpenCombine(recOpen.RecentProject[0].ToString());
- }
+ RecentOpen recentOpen = ((IFileService)MonoDevelop.Core.Services.ServiceManager.GetService (typeof (IFileService))).RecentOpen;
+
+ if (recentOpen.RecentProject != null && recentOpen.RecentProject.Length > 0) {
+ projectService.OpenCombine(recentOpen.RecentProject[0].ToString());
}
}
More information about the Monodevelop-patches-list
mailing list