We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8954c7 commit 5bece84Copy full SHA for 5bece84
1 file changed
source/Reloaded.Mod.Launcher.Lib/Commands/Application/AddApplicationCommand.cs
@@ -169,15 +169,16 @@ private void UpdateIdIfDuplicate(IApplicationConfig config)
169
/// </summary>
170
private string SelectEXEFile()
171
{
172
- var dialog = new VistaSaveFileDialog();
173
- dialog.OverwritePrompt = false;
+ var dialog = new VistaOpenFileDialog();
174
dialog.Title = Resources.AddAppExecutableTitle.Get();
175
dialog.Filter = $"{Resources.AddAppExecutableFilter.Get()} (*.exe)|*.exe";
+ dialog.CheckFileExists = true;
176
+ dialog.Multiselect = false;
177
178
if ((bool)dialog.ShowDialog()!)
179
return dialog.FileName;
180
- return "";
181
+ return string.Empty;
182
}
183
184
0 commit comments