From a42b2b65ec62f29607c435a16e5c49670ef73211 Mon Sep 17 00:00:00 2001 From: EKNr1 Date: Thu, 21 Nov 2024 17:38:02 +0100 Subject: [PATCH] Removed unnecessary function. --- connect_gui.py | 2 +- utils.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/connect_gui.py b/connect_gui.py index d9ebb66..9714118 100644 --- a/connect_gui.py +++ b/connect_gui.py @@ -5,4 +5,4 @@ def connect_gui(app): app.gui.main_window.saveFile.triggered.connect(app.file_actions.save_current_file) app.gui.main_window.openFileTabs.tabCloseRequested.connect(app.file_actions.close_current_file) app.gui.QTMainWindow.closeEvent = app.utils.on_close - app.gui.main_window.menuSettings.triggered.connect(app.utils.open_settings) + app.gui.main_window.menuSettings.triggered.connect(app.gui.main_window.settingsDock.show) diff --git a/utils.py b/utils.py index a418e9c..1642356 100644 --- a/utils.py +++ b/utils.py @@ -74,6 +74,3 @@ class Utils: event.ignore() print("Bye!") - - def open_settings(self): - self.app.main_window.settingsDock.show()