Skip to content

Commit f57cf82

Browse files
committed
(tweak) Use paths properly
1 parent 74fc63b commit f57cf82

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

BabbleApp/Images/logo.png

-1.29 KB
Binary file not shown.

BabbleApp/babbleapp.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from calib_settings_widget import CalibSettingsWidget
3535
from utils.misc_utils import EnsurePath, is_nt, bg_color_highlight, bg_color_clear
3636
from lang_manager import LocaleStringManager as lang
37-
from desktop_notifier import DesktopNotifierSync, Urgency, Button, DEFAULT_SOUND
37+
from desktop_notifier import DesktopNotifierSync, Urgency, Button, Icon, DEFAULT_SOUND
3838

3939
winmm = None
4040

@@ -74,6 +74,9 @@ def timerResolution(toggle):
7474
winmm.timeEndPeriod(1)
7575

7676
def send_notification(latestversion):
77+
logo = Icon(
78+
path=Path(os.path.join(os.getcwd(), "Images", "logo.ico"))
79+
)
7780
notifier = DesktopNotifierSync(app_name="Babble App")
7881
notifier.send(
7982
title=lang._instance.get_string("babble.updatePresent"),
@@ -85,7 +88,7 @@ def send_notification(latestversion):
8588
on_pressed=lambda: webbrowser.open("https://github.com/SummerSigh/ProjectBabble/releases/latest"),
8689
)
8790
],
88-
icon=Path(os.path.join(os.getcwd(), "Images", "logo.ico")),
91+
icon=logo,
8992
sound=DEFAULT_SOUND
9093
)
9194

BabbleApp/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ torchvision==0.19.1
99
pydantic==1.10.18
1010
pyserial==3.5
1111
colorama==0.4.6
12-
desktop_notifier==6.0.0
12+
desktop-notifier==6.0.0
1313
comtypes==1.4.8
1414
pygrabber==0.2
1515
poetry

0 commit comments

Comments
 (0)