diff --git a/src/calibre/gui2/tweak_book/preview.py b/src/calibre/gui2/tweak_book/preview.py index 983b22125c..f9048cfdd2 100644 --- a/src/calibre/gui2/tweak_book/preview.py +++ b/src/calibre/gui2/tweak_book/preview.py @@ -320,13 +320,13 @@ class Inspector(QWidget): self.view = None self.layout = QHBoxLayout(self) self.layout.setContentsMargins(0, 0, 0, 0) - self.connection_attempts = 1 + self.connection_attempts = 0 QTimer.singleShot(0, self.connect_to_dock) def connect_to_dock(self): if 'inspector-dock' not in actions: self.connection_attempts += 1 - if self.connection_attempts < 10: + if self.connection_attempts < 1000: QTimer.singleShot(10, self.connect_to_dock) else: print('Failed to connect to inspector dock')