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

Support app.shutdown() in native mode #1403

Merged
merged 2 commits into from
Aug 14, 2023
Merged

Support app.shutdown() in native mode #1403

merged 2 commits into from
Aug 14, 2023

Conversation

rodja
Copy link
Member

@rodja rodja commented Aug 12, 2023

This PR fixed app.native.main_window.destroy() and app.shutdown() for the native mode. (See #1322.)

@rodja rodja added this to the 1.3.10 milestone Aug 12, 2023
@rodja
Copy link
Member Author

rodja commented Aug 12, 2023

Testable with

ui.button('destroy window', on_click=lambda: app.native.main_window.destroy())
ui.button('nicegui shutdown', on_click=lambda: app.shutdown())

@falkoschindler falkoschindler merged commit 0458ed9 into main Aug 14, 2023
5 checks passed
@falkoschindler falkoschindler deleted the native_shutdown branch August 14, 2023 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants