Skip to content

Commit 467e67c

Browse files
authored
Custom Install Directory: Use Inline if for Safer Default Launcher Selection (#371)
1 parent 7ef58ff commit 467e67c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pupgui2/pupgui2customiddialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def setup_ui(self):
5050
display_name for display_name in self.install_locations_dict.values()
5151
])
5252

53-
self.set_selected_launcher(self.install_locations_dict[self.launcher] or 'steam') # Default combobox selection to "Steam" if unknown launcher for some reason
53+
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
5454

5555
self.ui.btnSave.clicked.connect(self.btn_save_clicked)
5656
self.ui.btnDefault.clicked.connect(self.btn_default_clicked)

0 commit comments

Comments
 (0)