[msitools: 4/11] wixl: set default action sequence to -999 rather than -1




commit 12b85586259562b2e3107520a3df4ca874b6b560
Author: Brendon Jones <brendon jones gmail com>
Date:   Sun Sep 19 23:21:16 2021 +1200

    wixl: set default action sequence to -999 rather than -1
    
    ExitDialog action has sequence -1, which would otherwise clash.

 tools/wixl/msi.vala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tools/wixl/msi.vala b/tools/wixl/msi.vala
index 60dd5e3..073da5e 100644
--- a/tools/wixl/msi.vala
+++ b/tools/wixl/msi.vala
@@ -342,7 +342,7 @@ namespace Wixl {
         public class Action {
             public string name;
             public string? condition;
-            public int sequence = -1;
+            public int sequence = -999;
             public WixAction? action;
 
             public bool visited = false;
@@ -414,7 +414,7 @@ namespace Wixl {
         void add_implicit_deps () {
             Action? prev = null;
             foreach (var a in sorted_actions()) {
-                if (a.sequence == -1)
+                if (a.sequence == -999)
                     continue;
                 if (prev != null)
                     a.add_dep (prev);
@@ -428,7 +428,7 @@ namespace Wixl {
 
             int sequence = 0;
             foreach (var action in sorted) {
-                if (action.sequence == -1)
+                if (action.sequence == -999)
                     action.sequence = ++sequence;
 
                 sequence = action.sequence;


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