Skip to content

Commit b81314f

Browse files
xdri3nSPO
authored andcommitted
(KIOSK) Fix displaying button Launch in Kiosk
- If the launcher_cmd is not defined in the package the Launch button will not be displayed (cherry picked from commit 6df6533)
1 parent ace3835 commit b81314f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

kiosk_interface/views/custom_package_item.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ def __init__(self, app, package):
9595
if "action" in package:
9696
for action in package["action"]:
9797
if action == "Launch":
98-
if "launcher" in package:
99-
self.actions.append(action)
100-
self.action_button[action] = QPushButton(action)
98+
if "launcher_cmd" in package and package["launcher_cmd"]:
99+
self.actions.append(action)
100+
self.action_button[action] = QPushButton(action)
101101
else:
102102
pass
103103
else:
@@ -210,9 +210,9 @@ def return_message(self, button, action):
210210
)
211211

212212
elif action == "Launch":
213-
if "launcher" in self.package:
213+
if "launcher_cmd" in self.package:
214214
try:
215-
launcher = base64.b64decode(self.package["launcher"]).decode(
215+
launcher = base64.b64decode(self.package["launcher_cmd"]).decode(
216216
"utf-8"
217217
)
218218
except BaseException:

0 commit comments

Comments
 (0)