File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/Files.App/ViewModels/Settings Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,12 @@ public AdvancedViewModel()
46
46
47
47
private async Task OpenSettingsJsonAsync ( )
48
48
{
49
- var settingsJsonPath = await StorageFile . GetFileFromApplicationUriAsync ( new Uri ( "ms-appdata:///local/settings/user_settings.json" ) ) ;
50
-
51
- if ( ! await Launcher . LaunchFileAsync ( settingsJsonPath ) )
49
+ await SafetyExtensions . IgnoreExceptions ( async ( ) =>
52
50
{
53
- await ContextMenu . InvokeVerb ( "open" , settingsJsonPath . Path ) ;
54
- }
51
+ var settingsJsonFile = await StorageFile . GetFileFromApplicationUriAsync ( new Uri ( "ms-appdata:///local/settings/user_settings.json" ) ) ;
52
+ if ( ! await Launcher . LaunchFileAsync ( settingsJsonFile ) )
53
+ await ContextMenu . InvokeVerb ( "open" , settingsJsonFile . Path ) ;
54
+ } ) ;
55
55
}
56
56
57
57
private async Task SetAsDefaultExplorerAsync ( )
You can’t perform that action at this time.
0 commit comments