mirror of
https://github.com/samschott/maestral.git
synced 2024-11-15 08:25:49 +03:00
update to new desktop-notifier API
This commit is contained in:
parent
192232065f
commit
0027ed0c57
@ -25,7 +25,7 @@ urls = { Homepage = "https://maestral.app" }
|
||||
requires-python = ">=3.8"
|
||||
dependencies = [
|
||||
"click>=8.0.2",
|
||||
"desktop-notifier>=3.3.0",
|
||||
"desktop-notifier>=5.0.0",
|
||||
"dropbox>=11.28.0,<13.0",
|
||||
"fasteners>=0.15",
|
||||
"keyring>=22",
|
||||
|
@ -15,7 +15,7 @@ from asyncio import AbstractEventLoop
|
||||
from typing import Any, Callable, cast
|
||||
|
||||
# external imports
|
||||
from desktop_notifier import Button, DesktopNotifier, Urgency
|
||||
from desktop_notifier import Button, DesktopNotifier, Icon, Urgency
|
||||
|
||||
# local imports
|
||||
from .config import MaestralConfig
|
||||
@ -36,7 +36,7 @@ logger.setLevel(logging.ERROR)
|
||||
|
||||
_desktop_notifier = DesktopNotifier(
|
||||
app_name=APP_NAME,
|
||||
app_icon=APP_ICON_PATH.as_uri(),
|
||||
app_icon=Icon(path=APP_ICON_PATH),
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user