Merge remote-tracking branch 'origin/pr/2879'
This commit is contained in:
commit
85532248fa
@ -716,7 +716,7 @@ class AbstractTab(QWidget):
|
|||||||
self._set_load_status(usertypes.LoadStatus.loading)
|
self._set_load_status(usertypes.LoadStatus.loading)
|
||||||
self.load_started.emit()
|
self.load_started.emit()
|
||||||
|
|
||||||
def _handle_auto_insert_mode(self, ok):
|
def handle_auto_insert_mode(self, ok):
|
||||||
"""Handle `input.insert_mode.auto_load` after loading finished."""
|
"""Handle `input.insert_mode.auto_load` after loading finished."""
|
||||||
if not config.val.input.insert_mode.auto_load or not ok:
|
if not config.val.input.insert_mode.auto_load or not ok:
|
||||||
return
|
return
|
||||||
@ -753,7 +753,6 @@ class AbstractTab(QWidget):
|
|||||||
self.load_finished.emit(ok)
|
self.load_finished.emit(ok)
|
||||||
if not self.title():
|
if not self.title():
|
||||||
self.title_changed.emit(self.url().toDisplayString())
|
self.title_changed.emit(self.url().toDisplayString())
|
||||||
self._handle_auto_insert_mode(ok)
|
|
||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def _on_history_trigger(self):
|
def _on_history_trigger(self):
|
||||||
|
@ -685,6 +685,7 @@ class TabbedBrowser(tabwidget.TabWidget):
|
|||||||
self._update_tab_title(idx)
|
self._update_tab_title(idx)
|
||||||
if idx == self.currentIndex():
|
if idx == self.currentIndex():
|
||||||
self._update_window_title()
|
self._update_window_title()
|
||||||
|
tab.handle_auto_insert_mode(ok)
|
||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def on_scroll_pos_changed(self):
|
def on_scroll_pos_changed(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user