remove tmp file when closing tab

This commit is contained in:
2021-10-27 09:00:44 +02:00
parent 1d8cd3dce5
commit 5a4299ef84
4 changed files with 16 additions and 6 deletions

View File

@@ -53,6 +53,7 @@ class Tabs(QWidget):
def _close_tab(self, tab_index: int):
full_tab: FullTabWidget = self.tabs.widget(tab_index)
full_tab.destruct()
del self.tabs_by_filename[full_tab.file_view.get_file()]
self.tabs.removeTab(tab_index)