mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-05 13:29:12 -04:00
Cleanup tabs on cleanup
This commit is contained in:
parent
8530321e5d
commit
a0197e49d7
2 changed files with 3 additions and 2 deletions
|
@ -286,5 +286,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||||
e.accept()
|
e.accept()
|
||||||
|
|
||||||
def cleanup(self):
|
def cleanup(self):
|
||||||
|
for index in range(self.tabs.count()):
|
||||||
|
tab = self.tabs.widget(index)
|
||||||
|
tab.cleanup()
|
||||||
self.common.gui.onion.cleanup()
|
self.common.gui.onion.cleanup()
|
||||||
# TODO: Run the tab's cleanup
|
|
||||||
|
|
|
@ -538,7 +538,6 @@ class Tab(QtWidgets.QWidget):
|
||||||
if not self.timer.isActive():
|
if not self.timer.isActive():
|
||||||
self.timer.start(500)
|
self.timer.start(500)
|
||||||
self.get_mode().on_reload_settings()
|
self.get_mode().on_reload_settings()
|
||||||
self.get_mode().primary_action.show()
|
|
||||||
|
|
||||||
def close_tab(self):
|
def close_tab(self):
|
||||||
self.common.log("Tab", "close_tab")
|
self.common.log("Tab", "close_tab")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue