mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-09 14:52:40 -04:00
Add persistent pin
This commit is contained in:
parent
656d3d1564
commit
216fbd4e87
5 changed files with 51 additions and 13 deletions
|
@ -100,6 +100,11 @@ class TabWidget(QtWidgets.QTabWidget):
|
|||
index = self.indexOf(self.tabs[tab_id])
|
||||
self.setTabText(index, title)
|
||||
|
||||
# Now that a mode has been selected, add persistence button
|
||||
self.tabBar().setTabButton(
|
||||
index, QtWidgets.QTabBar.LeftSide, self.tabs[tab_id].persistence_button
|
||||
)
|
||||
|
||||
def close_tab(self, index):
|
||||
self.common.log("TabWidget", "close_tab", f"{index}")
|
||||
tab = self.widget(index)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue