Creating new files now actually works.

Somehow PyQt passed something to the new_file()-function, and it crashed every time because the variable was the wrong type.
This commit is contained in:
The Wobbler 2024-12-09 17:49:25 +01:00
parent 93408e9a29
commit b2afa06ee1

View file

@ -2,7 +2,7 @@
def connect_gui(app): def connect_gui(app):
app.gui.main_window.openFile.triggered.connect(app.file_actions.open_files) app.gui.main_window.openFile.triggered.connect(app.file_actions.open_files)
app.gui.main_window.newFile.triggered.connect(app.file_actions.create_file) app.gui.main_window.newFile.triggered.connect(lambda: app.file_actions.create_file())
app.gui.main_window.saveFile.triggered.connect(app.file_actions.save_current_file) app.gui.main_window.saveFile.triggered.connect(app.file_actions.save_current_file)
app.gui.main_window.saveFileAs.triggered.connect(app.file_actions.save_current_file_as) app.gui.main_window.saveFileAs.triggered.connect(app.file_actions.save_current_file_as)