IDE: Main toolbar : Show repair button also in stop mode. Move repair button after disconnect button. svghmi
authorEdouard Tisserant
Tue, 02 Jun 2020 11:34:50 +0200
branchsvghmi
changeset 2974 78938093e8b2
parent 2973 fbe1c05c0311
child 2975 8e8812f13d9d
IDE: Main toolbar : Show repair button also in stop mode. Move repair button after disconnect button.
ProjectController.py
--- a/ProjectController.py	Mon Jun 01 14:47:31 2020 +0200
+++ b/ProjectController.py	Tue Jun 02 11:34:50 2020 +0200
@@ -1440,7 +1440,8 @@
         PlcStatus.Stopped:      {"_Run": True,
                                  "_Transfer": True,
                                  "_Connect": False,
-                                 "_Disconnect": True},
+                                 "_Disconnect": True,
+                                 "_Repair": True},
         PlcStatus.Empty:        {"_Transfer": True,
                                  "_Connect": False,
                                  "_Disconnect": True},
@@ -1966,6 +1967,13 @@
             "shown":      False,
         },
         {
+            "bitmap":    "Disconnect",
+            "name":    _("Disconnect"),
+            "tooltip": _("Disconnect from PLC"),
+            "method":   "_Disconnect",
+            "shown":      False,
+        },
+        {
             "bitmap":    "Repair",
             "name":    _("Repair"),
             "tooltip": _("Repair broken PLC"),
@@ -1973,13 +1981,6 @@
             "shown":      False,
         },
         {
-            "bitmap":    "Disconnect",
-            "name":    _("Disconnect"),
-            "tooltip": _("Disconnect from PLC"),
-            "method":   "_Disconnect",
-            "shown":      False,
-        },
-        {
             "bitmap":    "IDManager",
             "name":    _("ID Manager"),
             "tooltip": _("Manage secure connection identities"),