cover all members of the LifecycleState enum

This commit is contained in:
toofar 2025-05-17 18:00:28 +12:00 committed by owl
parent cf29f305e1
commit 7105003a7d
No known key found for this signature in database
GPG Key ID: C2308C68A80FC991
1 changed files with 3 additions and 1 deletions

View File

@ -1750,8 +1750,10 @@ class WebEngineTab(browsertab.AbstractTab):
delay = config.val.qt.chromium.lifecycle_state_freeze_delay
elif recommended_state == QWebEnginePage.LifecycleState.Discarded:
delay = config.val.qt.chromium.lifecycle_state_discard_delay
else:
elif recommended_state == QWebEnginePage.LifecycleState.Active:
delay = 0
else:
raise utils.Unreachable(recommended_state)
try:
self._lifecycle_timer.timeout.disconnect()