mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-09 09:55:00 -04:00
Add persistent pin
This commit is contained in:
parent
c3330919f4
commit
4f4a71a23c
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