mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Try to gracefully terminate the LSP server when requested
This commit is contained in:
parent
121a098f74
commit
d9db07db2a
2 changed files with 38 additions and 26 deletions
|
@ -49,6 +49,12 @@ pub fn start_ui_event_loop() {
|
|||
sixtyfps_interpreter::run_event_loop();
|
||||
}
|
||||
|
||||
pub fn quit_ui_event_loop() {
|
||||
sixtyfps_rendering_backend_default::backend().post_event(Box::new(|| {
|
||||
sixtyfps_rendering_backend_default::backend().quit_event_loop();
|
||||
}));
|
||||
}
|
||||
|
||||
pub fn load_preview(path: std::path::PathBuf) {
|
||||
run_in_ui_thread(Box::pin(async move { reload_preview(&path).await }));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue