mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 09:34:59 +00:00
TextEditor: Set initial widget visibilities from JSON
This commit is contained in:
parent
6fc8dedd28
commit
89822c5ae7
2 changed files with 3 additions and 5 deletions
|
@ -85,7 +85,6 @@ TextEditorWidget::TextEditorWidget()
|
|||
};
|
||||
|
||||
m_page_view = static_cast<Web::InProcessWebView&>(*find_descendant_by_name("webview"));
|
||||
m_page_view->set_visible(false);
|
||||
m_page_view->on_link_hover = [this](auto& url) {
|
||||
if (url.is_valid())
|
||||
m_statusbar->set_text(url.to_string());
|
||||
|
@ -103,13 +102,10 @@ TextEditorWidget::TextEditorWidget()
|
|||
};
|
||||
|
||||
m_find_replace_widget = *find_descendant_by_name("find_replace_widget");
|
||||
m_find_replace_widget->set_visible(false);
|
||||
|
||||
m_find_widget = *find_descendant_by_name("find_widget");
|
||||
m_find_widget->set_visible(false);
|
||||
|
||||
m_replace_widget = *find_descendant_by_name("replace_widget");
|
||||
m_replace_widget->set_visible(false);
|
||||
|
||||
m_find_textbox = m_find_widget->add<GUI::TextBox>();
|
||||
m_replace_textbox = m_replace_widget->add<GUI::TextBox>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue