mirror of https://github.com/LedFx/LedFx.git
remove notifypy. only show notifications via pystray
This commit is contained in:
parent
22324f0511
commit
5b21d3af2e
|
@ -2,11 +2,9 @@ hiddenimports = [
|
|||
"sacn",
|
||||
"aubio",
|
||||
"numpy",
|
||||
"notifypy",
|
||||
"math",
|
||||
"voluptuous",
|
||||
"numpy",
|
||||
"notifypy",
|
||||
"aiohttp",
|
||||
"mido",
|
||||
"mido.frozen",
|
||||
|
|
|
@ -2,7 +2,6 @@ import logging
|
|||
from json import JSONDecodeError
|
||||
|
||||
from aiohttp import web
|
||||
from notifypy import Notify
|
||||
|
||||
from ledfx.api import RestEndpoint
|
||||
from ledfx.utils import get_icon_path
|
||||
|
@ -48,14 +47,6 @@ class NotifyEndpoint(RestEndpoint):
|
|||
if self.icon is not None:
|
||||
if self.icon.HAS_NOTIFICATION:
|
||||
self.icon.notify(f"{title}:\n{text}")
|
||||
else:
|
||||
icon_location = get_icon_path("tray.png")
|
||||
notification = Notify()
|
||||
notification.application_name = "LedFx"
|
||||
notification.title = title
|
||||
notification.message = text
|
||||
notification.icon = icon_location
|
||||
notification.send(block=False)
|
||||
|
||||
response = {
|
||||
"status": "success",
|
||||
|
|
Loading…
Reference in New Issue