/[RomCheater]/trunk/RomCheater/Docking/FloatingUserControlDock.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/FloatingUserControlDock.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater/Docking/FloatingUserControlDock.cs	2014/09/16 21:32:29	857
+++ trunk/RomCheater/Docking/FloatingUserControlDock.cs	2014/09/16 21:51:59	858
@@ -60,7 +60,10 @@
                             {
                                 foreach (var plugin in this.UserPlugins)
                                 {
-                                    if (plugin.DockContent.ToString() == content.ToString())
+                                    if (content.GetType().Name == "")
+                                    {
+                                    }
+                                    if (plugin.DockContent.GetType().Name == content.GetType().Name)
                                     {
                                         plugin.DockHandler = content.DockHandler;
                                     }
@@ -117,6 +120,12 @@
             foreach (var plugin in this.UserPlugins)
             {
                 string t = plugin.DockContent.GetType().ToString();
+                if (persistString == "RomCheater.RVACalculator.RVACalculatorDockControl" && t == "RomCheater.RVACheatList.RVACheatListDockControl")
+                {
+                    // update from renameing RomCheater.RVACalculator to RomCheater.RVACheatList
+                    content = plugin.DockContent;
+                    break;
+                }
                 if (persistString == t)
                 {
                     content = plugin.DockContent;

 

  ViewVC Help
Powered by ViewVC 1.1.22