File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 6
6
__author__ = 'Simon Robinson'
7
7
__copyright__ = 'Copyright (c) 2024 Simon Robinson'
8
8
__license__ = 'Apache 2.0'
9
- __version__ = '2024-03-15 ' # ISO 8601 (YYYY-MM-DD)
9
+ __version__ = '2024-05-22 ' # ISO 8601 (YYYY-MM-DD)
10
10
__package_version__ = '.' .join ([str (int (i )) for i in __version__ .split ('-' )]) # for pyproject.toml usage only
11
11
12
12
import abc
@@ -2631,7 +2631,7 @@ def create_icon(self):
2631
2631
pillow_version = pkg_resources .get_distribution ('pillow' ).version
2632
2632
if pkg_resources .parse_version (pystray_version ) <= pkg_resources .parse_version ('0.19.4' ) and \
2633
2633
pkg_resources .parse_version (pillow_version ) >= pkg_resources .parse_version ('10.0.0' ):
2634
- Image .ANTIALIAS = Image .LANCZOS
2634
+ Image .ANTIALIAS = Image .LANCZOS if hasattr ( Image , 'LANCZOS' ) else Image . Resampling . LANCZOS
2635
2635
icon_class = RetinaIcon if sys .platform == 'darwin' else pystray .Icon
2636
2636
return icon_class (APP_NAME , App .get_image (), APP_NAME , menu = pystray .Menu (
2637
2637
pystray .MenuItem ('Servers and accounts' , pystray .Menu (self .create_config_menu )),
You can’t perform that action at this time.
0 commit comments