Skip to content

Commit

Permalink
Renamed FileManager.
Browse files Browse the repository at this point in the history
  • Loading branch information
jupfi committed May 5, 2024
1 parent 06a2edc commit f76eebe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/nqrduck_pulseprogrammer/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
QDialogButtonBox,
QWidget,
QToolButton,
QFileDialog,
QSizePolicy,
)
from PyQt6.QtCore import pyqtSlot, pyqtSignal
Expand Down Expand Up @@ -338,7 +337,7 @@ def on_table_button_clicked(self, event, parameter) -> None:
def on_save_button_clicked(self) -> None:
"""This method is called whenever the save button is clicked. It opens a dialog to select a file to save the pulse sequence to."""
logger.debug("Save button clicked")
file_manager = self.QFileManager(self.module.model.FILE_EXTENSION, parent=self)
file_manager = self.FileManager(self.module.model.FILE_EXTENSION, parent=self)
file_name = file_manager.saveFileDialog()
if file_name:
self.module.controller.save_pulse_sequence(file_name)
Expand All @@ -347,7 +346,7 @@ def on_save_button_clicked(self) -> None:
def on_load_button_clicked(self) -> None:
"""This method is called whenever the load button is clicked. It opens a dialog to select a file to load the pulse sequence from."""
logger.debug("Load button clicked")
file_manager = self.QFileManager(self.module.model.FILE_EXTENSION, parent=self)
file_manager = self.FileManager(self.module.model.FILE_EXTENSION, parent=self)
file_name = file_manager.loadFileDialog()
if file_name:
try:
Expand Down

0 comments on commit f76eebe

Please sign in to comment.