Skip to content

Commit

Permalink
(notification tab) remove notification tab calls
Browse files Browse the repository at this point in the history
There were some remainings notification tab calls and signals.

The py file is still existing, if needed we can restore the calls to reactivate it.

(cherry picked from commit b86c35b)
  • Loading branch information
botheis authored and neoclust committed Apr 18, 2024
1 parent 42a2f68 commit 21c4e79
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 31 deletions.
7 changes: 0 additions & 7 deletions kiosk_interface/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,6 @@ def action_message_received_from_am(self, message="{}"):
}
}
"""
if self.app.kiosk.tab_notification is not None:
self.app.kiosk.tab_notification.add_notification(
self.app.message["data"]["message"]
)
else:
print(self.app.message["message"])

if "status" in self.app.message["data"] and "stat" in self.app.message["data"]:
uuid = self.app.message["data"]["path"].split("/")
uuid = uuid[-1]
Expand Down
4 changes: 0 additions & 4 deletions kiosk_interface/kiosk.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@
try:
from kiosk_interface.views.custom_package_item import CustomPackageWidget
from kiosk_interface.views.tab_kiosk import TabKiosk
from kiosk_interface.views.tab_notification import TabNotification
except BaseException:
from views.custom_package_item import CustomPackageWidget
from views.tab_kiosk import TabKiosk
from views.tab_notification import TabNotification
import re


Expand All @@ -62,11 +60,9 @@ def __init__(self, app):
"info", self.app.translate("Application", "Kiosk main view initialization")
)
self.tab_kiosk = TabKiosk(self.app, self)
# self.tab_notification = TabNotification(self.app, self)

self.tabs = QTabWidget(self.app.kiosk)
self.tabs.addTab(self.tab_kiosk, "Packages")
# self.tabs.addTab(self.tab_notification, "Notifications")

grid = QGridLayout(self.app.kiosk)
grid.addWidget(self.tabs, 1, 1, 1, 1)
Expand Down
20 changes: 0 additions & 20 deletions kiosk_interface/views/custom_package_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,6 @@ def __init__(self, app, package):
else:

if self.statusbar.value() == 100:
actual_notif = (
self.app.kiosk.tab_notification.text_logs.toPlainText()
+ "\n"
+ self.app.translate(
"Action",
"%s for package %s Done"
% (package["status"], package["name"]),
)
)

self.app.kiosk.tab_notification.add_notification(actual_notif)

for pkg_ref in self.app.packages:
if pkg_ref == package:
Expand Down Expand Up @@ -205,7 +194,6 @@ def return_message(self, button, action):
msg = self.app.translate(
"Action", "The application %s is installing" % self.name.text()
)
self.app.kiosk.tab_notification.add_notification(msg)
elif action == "Uninstall":
self._message = (
"""{"uuid": "%s", "action": "kioskinterface%s", "subaction": "%s"}"""
Expand All @@ -215,7 +203,6 @@ def return_message(self, button, action):
msg = self.app.translate(
"Action", "The application %s is deleting" % self.name.text()
)
self.app.kiosk.tab_notification.add_notification(msg)

elif action == "Launch":
if "launcher" in self.package:
Expand All @@ -232,11 +219,6 @@ def return_message(self, button, action):
msg = self.app.translate(
"Action", "The app %s is launched" % self.name.text()
)
self.app.kiosk.tab_notification.add_notification(msg)
else:
self.app.kiosk.tab_notification.add_notification(
launcher + "not found"
)

else:
if "Launch" in self.package["action"]:
Expand All @@ -252,7 +234,6 @@ def return_message(self, button, action):
"Action",
"The access to the application %s is asked to admin" % self.name.text(),
)
self.app.kiosk.tab_notification.add_notification(msg)

elif action == "Update":
self._message = (
Expand All @@ -263,7 +244,6 @@ def return_message(self, button, action):
msg = self.app.translate(
"Action", "The application %s is updating" % self.name.text()
)
self.app.kiosk.tab_notification.add_notification(msg)

else:
self._message = (
Expand Down

0 comments on commit 21c4e79

Please sign in to comment.