From 13255db1baf9c895c6c847abe638821aa02954f3 Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Sun, 11 Feb 2024 11:51:46 -0500 Subject: [PATCH] IPython console: Remove on_close method from it main widget That's not really necessary because the plugin declares the same method, so it was being called twice when the main window is closed. --- spyder/plugins/ipythonconsole/widgets/main_widget.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/spyder/plugins/ipythonconsole/widgets/main_widget.py b/spyder/plugins/ipythonconsole/widgets/main_widget.py index f32a434badc..ce5eeadb3f5 100644 --- a/spyder/plugins/ipythonconsole/widgets/main_widget.py +++ b/spyder/plugins/ipythonconsole/widgets/main_widget.py @@ -350,10 +350,6 @@ def __init__(self, name=None, plugin=None, parent=None): # Update the list of envs at startup self.get_envs() - def on_close(self): - self.mainwindow_close = True - self.close_all_clients() - # ---- PluginMainWidget API and settings handling # ------------------------------------------------------------------------ def get_title(self):