Skip to content

Commit 9b49734

Browse files
committed
Fix uncovered line
1 parent 739146e commit 9b49734

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

novelwriter/extensions/modified.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,6 @@ def __init__(self, parent: QWidget) -> None:
485485
super().__init__(parent=parent)
486486
self.setTabBar(NTabBar(self))
487487
self.setDocumentMode(True)
488-
if tabBar := self.tabBar(): # pragma: no branch
489-
tabBar.setDrawBase(False)
490488

491489
def refreshTheme(self) -> None:
492490
"""Refresh the tab colours for theme updates."""
@@ -503,6 +501,7 @@ class NTabBar(QTabBar):
503501

504502
def __init__(self, parent: QWidget) -> None:
505503
super().__init__(parent=parent)
504+
self.setDrawBase(False)
506505

507506
def tabSizeHint(self, index: int) -> QSize:
508507
"""Reduce the tab height by shrinking the margin above and below the text."""

0 commit comments

Comments
 (0)