]> O.S.I.I.S - jp/crow.git/commitdiff
adapt when DEBUG_LAYOUTING not set
authorjpbruyere <jp.bruyere@hotmail.com>
Tue, 23 Aug 2016 09:21:35 +0000 (11:21 +0200)
committerjpbruyere <jp.bruyere@hotmail.com>
Thu, 1 Sep 2016 11:24:17 +0000 (13:24 +0200)
src/Interface.cs
src/LayoutingQueueItem.cs

index 0c1cd766979efcdd0d33694baed35e5a7f947354..1659c0ea29a9ea8ac9c48b5a103d13a3246cd5f1 100644 (file)
@@ -329,6 +329,8 @@ namespace Crow
 //                     get { return curUpdateLQIs.Where(l=>l.LayoutingTries>2 || l.DiscardCount > 0).ToArray(); }
 //             }
                public LayoutingQueueItem currentLQI = null;
+               #else
+               public List<LQIList> LQIs = null;//still create the var for CrowIDE
                #endif
                public void Update(){
                        if (mouseRepeatCount > 0) {
index 5ec454c54765e81a436337daf8186dca0d66ee91..3b19efc9866bd30d798569e2d0f6c67687ba93d6 100644 (file)
@@ -142,12 +142,12 @@ namespace Crow
                        #endif
                }
        }
-       #if DEBUG_LAYOUTING
        public class LQIList : List<LayoutingQueueItem>{
+               #if DEBUG_LAYOUTING
                public List<LayoutingQueueItem> GetRootLQIs(){
                        return this.Where (lqi => lqi.wasTriggeredBy == null).ToList ();
                }
+               #endif
        }
-       #endif
 }