Skip to content

Commit

Permalink
Added X button to smart tabs. Closed #80
Browse files Browse the repository at this point in the history
  • Loading branch information
il-palmi committed Nov 23, 2021
1 parent 7d6132c commit e9f2260
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utilites.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,8 @@ def __init__(self):
super().__init__()
self.color = None
self.tabs = []
self.setTabsClosable(True)
self.tabCloseRequested.connect(lambda index: self.removeTab(index))

def add_tab(self, drive: str, status: Optional[str], uploaded: bool, text: list):
widget = QtWidgets.QWidget()
Expand Down

0 comments on commit e9f2260

Please sign in to comment.