mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-21 07:41:51 +00:00
lsp: Remove the PostLoadBehavior
We always update if we have a UI and we never update if not. So this flag does not help.
This commit is contained in:
parent
df86bf67af
commit
55cc1ae31f
5 changed files with 23 additions and 40 deletions
|
@ -394,16 +394,13 @@ pub fn show_preview_command(params: &[serde_json::Value], ctx: &Rc<Context>) ->
|
|||
params.get(1).and_then(|v| v.as_str()).filter(|v| !v.is_empty()).map(|v| v.to_string());
|
||||
let path = uri_to_file(&url).unwrap_or_default();
|
||||
|
||||
ctx.preview.load_preview(
|
||||
crate::common::PreviewComponent {
|
||||
path,
|
||||
component,
|
||||
include_paths: config.include_paths.clone(),
|
||||
library_paths: config.library_paths.clone(),
|
||||
style: config.style.clone().unwrap_or_default(),
|
||||
},
|
||||
crate::common::PostLoadBehavior::ShowAfterLoad,
|
||||
);
|
||||
ctx.preview.load_preview(crate::common::PreviewComponent {
|
||||
path,
|
||||
component,
|
||||
include_paths: config.include_paths.clone(),
|
||||
library_paths: config.library_paths.clone(),
|
||||
style: config.style.clone().unwrap_or_default(),
|
||||
});
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue