mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
API cleanup: Remove quit behavior parameter from run_event_loop
This commit is contained in:
parent
cb8a59683f
commit
3430a13bf8
9 changed files with 48 additions and 18 deletions
|
@ -28,9 +28,7 @@ pub unsafe extern "C" fn slint_windowrc_init(out: *mut WindowAdapterRcOpaque) {
|
|||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn slint_run_event_loop() {
|
||||
i_slint_backend_selector::with_platform(|b| {
|
||||
b.run_event_loop(i_slint_core::platform::EventLoopQuitBehavior::QuitOnLastWindowClosed)
|
||||
});
|
||||
i_slint_backend_selector::with_platform(|b| b.run_event_loop());
|
||||
}
|
||||
|
||||
/// Will execute the given functor in the main thread
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue