temporarily disable settings - unstable
authorAndrew Lorimer <andrew@lorimer.id.au>
Sat, 22 May 2021 08:04:48 +0000 (18:04 +1000)
committerAndrew Lorimer <andrew@lorimer.id.au>
Sat, 22 May 2021 08:04:48 +0000 (18:04 +1000)
ppt_control/ppt_control.py
index 1f4cfde85895063ba2d14b65f3b838fba9fa0760..4218f5c9ebdc59839e300a67d05da18bd1ff1349 100755 (executable)
@@ -430,6 +430,7 @@ def refresh_interval():
 \r
 def refresh_status():\r
     if interface_root is not None and interface_root.state == "normal":\r
+        logger.debug("Refreshing UI")\r
         if status_label is not None:\r
             status_label.config(text="PowerPoint status: " + ("not " if not STATE["connected"] else "") +  "connected")\r
         if http_label is not None:\r
@@ -545,8 +546,8 @@ class Interface(ttk.Frame):
         reset_http_button = ttk.Button(self, text="Restart", command=restart_http)\r
         reset_http_button.place(x=300, y=30)\r
 \r
-        reset_ws_button = ttk.Button(self, text="Restart", command=null_action)\r
-        reset_ws_button.place(x=300, y=50)\r
+        #reset_ws_button = ttk.Button(self, text="Restart", command=null_action)\r
+        #reset_ws_button.place(x=300, y=50)\r
 \r
         status_label = ttk.Label(self)\r
         status_label.place(x=10,y=10)\r
@@ -568,7 +569,7 @@ def exit_action(icon):
 def refresh_menu():\r
     icon.menu = (pystray.MenuItem("Status: " + "dis"*(not STATE["connected"]) + "connected", lambda: null_action(), enabled=False),\r
             pystray.MenuItem("Stop", lambda: exit_action(icon)),\r
-            pystray.MenuItem("Settings", lambda: open_settings())\r
+            pystray.MenuItem("Settings", lambda: open_settings(), enabled=False)\r
             )\r
 \r
 def show_icon():\r