mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 09:26:52 +00:00
Remove quotes from the exePath.
This solves copy/pasting a path from explorer using "Copy as path", which always adds quotes.
This commit is contained in:
committed by
Baldur Karlsson
parent
ef6d6b3271
commit
1ba783dea6
@@ -729,6 +729,13 @@ namespace renderdocui.Windows.Dialogs
|
||||
|
||||
private void exePath_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
// This is likely due to someone pasting a full path copied using
|
||||
// copy path. Removing the quotes is safe in any case
|
||||
if (exePath.Text.StartsWith ("\"") && exePath.Text.EndsWith ("\"") && exePath.Text.Length > 2)
|
||||
{
|
||||
exePath.Text = exePath.Text.Substring(1, exePath.Text.Length - 2);
|
||||
}
|
||||
|
||||
UpdateWorkDirHint();
|
||||
UpdateGlobalHook();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user