mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
TextEditor: Don't launch a WebContent process until it's needed
The HTML and Markdown preview modes both use an OutOfProcessWebView to render the preview pane, and we were instantiating this view from GML. This caused us to always spawn a WebContent process alongside every TextEditor instance. Fix this by deferring the OOPWV construction until we actually need it. This makes launching TextEditor on a text file quite a bit faster. :^)
This commit is contained in:
parent
e95e64972c
commit
1e0d855fdf
3 changed files with 44 additions and 22 deletions
|
@ -19,9 +19,12 @@
|
|||
name: "editor"
|
||||
}
|
||||
|
||||
@Web::OutOfProcessWebView {
|
||||
name: "webview"
|
||||
@GUI::Widget {
|
||||
name: "web_view_container"
|
||||
visible: false
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue