Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn if notification can not be displayed #1754

Merged
merged 2 commits into from
Oct 6, 2023
Merged

Warn if notification can not be displayed #1754

merged 2 commits into from
Oct 6, 2023

Conversation

rodja
Copy link
Member

@rodja rodja commented Oct 6, 2023

Initially raised on Discord, this pull request adds a warning if ui.notify is called before the client is connected.

@rodja rodja added the enhancement New feature or request label Oct 6, 2023
@rodja rodja added this to the 1.3.16 milestone Oct 6, 2023
@falkoschindler
Copy link
Contributor

Test script:

def handle_connection():
    ui.notify('Hi!')

app.on_connect(handle_connection)

@falkoschindler falkoschindler merged commit 03180ab into main Oct 6, 2023
1 of 5 checks passed
@falkoschindler falkoschindler deleted the notify branch October 6, 2023 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants