Skip to content

Commit

Permalink
Custom Install Directory: Use Inline if for Safer Default Launcher …
Browse files Browse the repository at this point in the history
…Selection (#371)
  • Loading branch information
sonic2kk committed Apr 8, 2024
1 parent 7ef58ff commit 467e67c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pupgui2/pupgui2customiddialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def setup_ui(self):
display_name for display_name in self.install_locations_dict.values()
])

self.set_selected_launcher(self.install_locations_dict[self.launcher] or 'steam') # Default combobox selection to "Steam" if unknown launcher for some reason
self.set_selected_launcher(self.install_locations_dict[self.launcher] if self.launcher in self.install_locations_dict else 'steam') # Default combobox selection to "Steam" if unknown launcher for some reason

self.ui.btnSave.clicked.connect(self.btn_save_clicked)
self.ui.btnDefault.clicked.connect(self.btn_default_clicked)
Expand Down

0 comments on commit 467e67c

Please sign in to comment.