mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-11-23 19:49:17 +08:00
[Settings]Fix crash showing non-existent template folder
This commit is contained in:
parent
6d69a79c75
commit
b89233753a
@ -250,12 +250,21 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
|
||||
private void OpenNewTemplateFolder()
|
||||
{
|
||||
var process = new ProcessStartInfo()
|
||||
try
|
||||
{
|
||||
FileName = _templateLocation,
|
||||
UseShellExecute = true,
|
||||
};
|
||||
Process.Start(process);
|
||||
CopyTemplateExamples(_templateLocation);
|
||||
|
||||
var process = new ProcessStartInfo()
|
||||
{
|
||||
FileName = _templateLocation,
|
||||
UseShellExecute = true,
|
||||
};
|
||||
Process.Start(process);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.LogError("Failed to show NewPlus template folder.", ex);
|
||||
}
|
||||
}
|
||||
|
||||
private async void PickNewTemplateFolder()
|
||||
|
Loading…
Reference in New Issue
Block a user