mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Save on unnecessary thrown ArgumentExceptions (convenience)
This commit is contained in:
@@ -476,6 +476,12 @@ namespace renderdocui.Windows.Dialogs
|
||||
{
|
||||
if (workDirHint == false) return;
|
||||
|
||||
if(exePath.Text == "")
|
||||
{
|
||||
workDirPath.Text = "";
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
workDirPath.Text = Path.GetDirectoryName(exePath.Text);
|
||||
|
||||
Reference in New Issue
Block a user