Cleanup tabs on cleanup

This commit is contained in:
Micah Lee 2019-11-28 14:58:04 -08:00
parent eefa43d923
commit 9529e06234
2 changed files with 3 additions and 2 deletions

View File

@ -286,5 +286,7 @@ class MainWindow(QtWidgets.QMainWindow):
e.accept()
def cleanup(self):
for index in range(self.tabs.count()):
tab = self.tabs.widget(index)
tab.cleanup()
self.common.gui.onion.cleanup()
# TODO: Run the tab's cleanup

View File

@ -538,7 +538,6 @@ class Tab(QtWidgets.QWidget):
if not self.timer.isActive():
self.timer.start(500)
self.get_mode().on_reload_settings()
self.get_mode().primary_action.show()
def close_tab(self):
self.common.log("Tab", "close_tab")