Mappable function to easily send test notification

This commit is contained in:
Kovid Goyal 2020-08-19 16:45:51 +05:30
parent 70afb2dd4d
commit 2fe1ef4774
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1536,3 +1536,7 @@ def set_background_image(self, path: Optional[str], os_windows: Tuple[int, ...],
set_background_image(path, os_windows, configured)
for os_window_id in os_windows:
self.default_bg_changed_for(os_window_id)
def send_test_notification(self) -> None:
from .notify import notify
notify('Test notification', 'Hello world')