API cleanup: Remove quit behavior parameter from run_event_loop

This commit is contained in:
Tobias Hunger 2022-08-29 19:47:11 +02:00 committed by Tobias Hunger
parent cb8a59683f
commit 3430a13bf8
9 changed files with 48 additions and 18 deletions

View file

@ -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