Commit 9aa16134 authored by Cédric Bellegarde's avatar Cédric Bellegarde

Call start_search() sooner. Fix #327

parent 45040b60
Pipeline #58107 passed with stage
in 7 minutes and 40 seconds
......@@ -163,6 +163,7 @@ class ToolbarActions(Gtk.Bin):
self.__window.container.add_webview(App().start_page,
LoadingType.FOREGROUND)
self.__window.close_popovers()
self.__window.toolbar.title.start_search()
def _on_pages_button_toggled(self, button):
"""
......
......@@ -136,9 +136,6 @@ class WebViewLoadSignals:
self._window.toolbar.title.show_readable_button(False)
if wanted_scheme:
self._window.toolbar.title.set_loading(True)
else:
# Give focus to url bar
self._window.toolbar.title.start_search()
self._window.toolbar.title.show_indicator(Indicator.NONE)
# Turn off reading mode
self._window.container.current.stop_reading()
......
......@@ -425,6 +425,7 @@ class Window(Gtk.ApplicationWindow):
elif string == "new_page":
self.container.add_webview(App().start_page,
LoadingType.FOREGROUND)
self.toolbar.title.start_search()
elif string == "close_page":
if self.is_fullscreen:
self.container.current.webview.emit("leave-fullscreen")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment