aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Modules/Tango.FSE.PPCConsole/ViewModels/FileSystemViewVM.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/FSE/Modules/Tango.FSE.PPCConsole/ViewModels/FileSystemViewVM.cs')
-rw-r--r--Software/Visual_Studio/FSE/Modules/Tango.FSE.PPCConsole/ViewModels/FileSystemViewVM.cs20
1 files changed, 17 insertions, 3 deletions
diff --git a/Software/Visual_Studio/FSE/Modules/Tango.FSE.PPCConsole/ViewModels/FileSystemViewVM.cs b/Software/Visual_Studio/FSE/Modules/Tango.FSE.PPCConsole/ViewModels/FileSystemViewVM.cs
index 6fb46320b..6dea5c146 100644
--- a/Software/Visual_Studio/FSE/Modules/Tango.FSE.PPCConsole/ViewModels/FileSystemViewVM.cs
+++ b/Software/Visual_Studio/FSE/Modules/Tango.FSE.PPCConsole/ViewModels/FileSystemViewVM.cs
@@ -211,7 +211,14 @@ namespace Tango.FSE.PPCConsole.ViewModels
{
if (e.DifferentFromPrevious)
{
- await Navigate(null);
+ try
+ {
+ await Navigate(null, null, true);
+ }
+ catch (Exception ex)
+ {
+ NotificationProvider.PushErrorReportingSnackbar(ex, "PPC Module Error", "Could not initialize the remote file system provider.");
+ }
}
}
}
@@ -406,7 +413,7 @@ namespace Tango.FSE.PPCConsole.ViewModels
await Navigate(null, specialFolder);
}
- private async Task Navigate(String path, Environment.SpecialFolder? specialFolder = null)
+ private async Task Navigate(String path, Environment.SpecialFolder? specialFolder = null, bool throwError = false)
{
try
{
@@ -439,7 +446,14 @@ namespace Tango.FSE.PPCConsole.ViewModels
{
IsFree = true;
Mouse.OverrideCursor = null;
- await NotificationProvider.ShowError($"Error navigating to the specified path.\n{ex.FlattenMessage()}");
+ if (!throwError)
+ {
+ await NotificationProvider.ShowError($"Error navigating to the specified path.\n{ex.FlattenMessage()}");
+ }
+ else
+ {
+ throw ex;
+ }
}
finally
{