Skip to content

Commit

Permalink
Deprecate Session.set_window_status_async (#2570)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwortmann authored Dec 9, 2024
1 parent 8f505fe commit 04ea961
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugin/core/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit 04ea961

Please sign in to comment.