Skip to content

Commit

Permalink
Merge pull request #4 from LaswitchTech/dev
Browse files Browse the repository at this point in the history
Publishing v1.0.3
  • Loading branch information
LouisOuellet authored Dec 5, 2024
2 parents 1347bc7 + ca46693 commit 09738f0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.0.2
v1.0.3
Binary file modified dist/macos/Configurator.app/Contents/MacOS/Configurator
Binary file not shown.
Binary file modified dist/macos/Configurator.dmg
Binary file not shown.
Binary file modified dist/windows/Configurator.exe
Binary file not shown.
8 changes: 4 additions & 4 deletions src/configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,21 +692,21 @@ def add_input(self, layout, section, key, parameters):
input_layout.setContentsMargins(0, 0, 0, 0)
elif parameters["type"] == "path":
# Handle path inputs
default_path = os.path.abspath(os.path.join(self.script_directory, parameters["default"])) if parameters["default"] else ""
value = self.parse_variables(value) or default_path
default_path = os.path.abspath(self.parse_variables(parameters["default"])) if parameters["default"] else ""
value = os.path.abspath(self.parse_variables(value) or default_path)

# Create the layout and widgets for the path field
path_layout = QHBoxLayout()
path_layout.setContentsMargins(0, 0, 0, 0)
line_edit = QLineEdit()
line_edit.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed)
line_edit.setText(os.path.abspath(value))
line_edit.setText(value)
browse_button = QPushButton("...")
default_button = QPushButton("Set Default")

# Connect buttons
browse_button.clicked.connect(lambda: self.browse_path(line_edit))
default_button.clicked.connect(lambda: line_edit.setText(os.path.abspath(self.parse_variables(default_path))))
default_button.clicked.connect(lambda: line_edit.setText(default_path))

# Add widgets to the path layout
path_layout.addWidget(line_edit)
Expand Down

0 comments on commit 09738f0

Please sign in to comment.