mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-12 23:37:14 +03:00
[2255] Replace Infi Systray with simplesystray
This commit is contained in:
parent
192ba5f8f2
commit
13e74f2c57
@ -101,8 +101,6 @@ logging.Logger.trace = lambda self, message, *args, **kwargs: self._log( # type
|
||||
logging.Formatter.converter = gmtime
|
||||
|
||||
warnings.simplefilter('default', DeprecationWarning)
|
||||
# TODO remove after infi.systray drops pkg_resources
|
||||
warnings.filterwarnings('ignore', '.*pkg_resources', DeprecationWarning)
|
||||
|
||||
|
||||
def _trace_if(self: logging.Logger, condition: str, message: str, *args, **kwargs) -> None:
|
||||
|
@ -396,7 +396,7 @@ if TYPE_CHECKING:
|
||||
from logging import TRACE # type: ignore # noqa: F401 # Needed to update mypy
|
||||
|
||||
if sys.platform == 'win32':
|
||||
from infi.systray import SysTrayIcon
|
||||
from simplesystray import SysTrayIcon
|
||||
# isort: on
|
||||
|
||||
|
||||
@ -452,7 +452,7 @@ class AppWindow:
|
||||
self.prefsdialog = None
|
||||
|
||||
if sys.platform == 'win32':
|
||||
from infi.systray import SysTrayIcon
|
||||
from simplesystray import SysTrayIcon
|
||||
|
||||
def open_window(systray: 'SysTrayIcon') -> None:
|
||||
self.w.deiconify()
|
||||
|
@ -5,7 +5,7 @@ wheel
|
||||
# We can't rely on just picking this up from either the base (not venv),
|
||||
# or venv-init-time version. Specify here so that dependabot will prod us
|
||||
# about new versions.
|
||||
setuptools==69.2.0
|
||||
setuptools==70.0.0
|
||||
|
||||
# Static analysis tools
|
||||
flake8==7.0.0
|
||||
|
@ -1,5 +1,5 @@
|
||||
requests==2.32.3
|
||||
pillow==10.3.0
|
||||
watchdog==4.0.0
|
||||
infi.systray==0.1.12; sys_platform == 'win32'
|
||||
simplesystray==0.1.0; sys_platform == 'win32'
|
||||
semantic-version==2.10.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user