From e55e5f1c143697a4960eeba24c8fb0ba5ab40d78 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20H=C3=B6gstedt?= <marin.hogstedt@hotmail.com>
Date: Tue, 18 Jun 2024 15:22:25 +0200
Subject: [PATCH] fixed comments

---
 src/simudator/gui/gui.py | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/simudator/gui/gui.py b/src/simudator/gui/gui.py
index ef86858..df3b7c3 100644
--- a/src/simudator/gui/gui.py
+++ b/src/simudator/gui/gui.py
@@ -599,27 +599,31 @@ class GUI(QMainWindow):
 
     def folderSaveDialog(self) -> str:
         """
-        Opens a file explorer in a new window. Returns the absolute path to the selected file.
+        Open a file explorer in a new window. Return the absolute path to the selected file.
 
-        ``dialog.getSaveFileName()`` can return existing aswell as non-existing files.
+        Can return existing as well as non-existing files.
         If the selected files does not exist it will be created.
         """
         dialog = QFileDialog()
         dialog.setFileMode(QFileDialog.AnyFile)
         dialog.setAcceptMode(QFileDialog.AcceptOpen)
         dialog.setDirectory("~/simudator")  # TODO: does this work when exported?
+
+        # getSaveFileName() can returncan return existing file but also create new ones
         return dialog.getSaveFileName()[0]
 
     def folderLoadDialog(self) -> str:
         """
-        Opens a file explorer in a new window. Returns the absolute path to the selected file.
+        Open a file explorer in a new window. Return the absolute path to the selected file.
 
-        ``dialog.getOpenFileName()`` can only return existing files.
+        Can only return existing files.
         """
         dialog = QFileDialog()
         dialog.setFileMode(QFileDialog.AnyFile)
         dialog.setAcceptMode(QFileDialog.AcceptOpen)
         dialog.setDirectory("~/simudator")  # TODO: does this work when exported?
+
+        # getOpenFileName() will only return already existing files
         return dialog.getOpenFileName()[0]
 
     def loadToolBarButtonClick(self) -> None:
-- 
GitLab