From 04ea961831a85d807948890173ebdf56cde20512 Mon Sep 17 00:00:00 2001 From: jwortmann Date: Mon, 9 Dec 2024 10:50:44 +0100 Subject: [PATCH] Deprecate Session.set_window_status_async (#2570) --- plugin/core/sessions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/core/sessions.py b/plugin/core/sessions.py index b4392348d..79f8a3d5c 100644 --- a/plugin/core/sessions.py +++ b/plugin/core/sessions.py @@ -115,6 +115,7 @@ from typing import Any, Callable, Generator, List, Protocol, TypeVar from typing import cast from typing_extensions import TypeAlias, TypeGuard +from typing_extensions import deprecated from weakref import WeakSet import functools import mdpopups @@ -1356,11 +1357,13 @@ def _redraw_config_status_async(self) -> None: for sv in self.session_views_async(): self.config.set_view_status(sv.view, self.config_status_message) + @deprecated("Use set_config_status_async(message) instead") def set_window_status_async(self, key: str, message: str) -> None: self._status_messages[key] = message for sv in self.session_views_async(): sv.view.set_status(key, message) + @deprecated("Use set_config_status_async('') instead") def erase_window_status_async(self, key: str) -> None: self._status_messages.pop(key, None) for sv in self.session_views_async():