@@ -19,14 +19,14 @@ public sealed partial class AdvancedViewModel : ObservableObject
19
19
{
20
20
private IUserSettingsService UserSettingsService { get ; } = Ioc . Default . GetRequiredService < IUserSettingsService > ( ) ;
21
21
private ICommonDialogService CommonDialogService { get ; } = Ioc . Default . GetRequiredService < ICommonDialogService > ( ) ;
22
+ public ICommandManager Commands { get ; } = Ioc . Default . GetRequiredService < ICommandManager > ( ) ;
22
23
23
24
private readonly IFileTagsSettingsService fileTagsSettingsService = Ioc . Default . GetRequiredService < IFileTagsSettingsService > ( ) ;
24
25
25
26
public ICommand SetAsDefaultExplorerCommand { get ; }
26
27
public ICommand SetAsOpenFileDialogCommand { get ; }
27
28
public ICommand ExportSettingsCommand { get ; }
28
29
public ICommand ImportSettingsCommand { get ; }
29
- public ICommand OpenSettingsJsonCommand { get ; }
30
30
public AsyncRelayCommand OpenFilesOnWindowsStartupCommand { get ; }
31
31
32
32
@@ -39,22 +39,11 @@ public AdvancedViewModel()
39
39
SetAsOpenFileDialogCommand = new AsyncRelayCommand ( SetAsOpenFileDialogAsync ) ;
40
40
ExportSettingsCommand = new AsyncRelayCommand ( ExportSettingsAsync ) ;
41
41
ImportSettingsCommand = new AsyncRelayCommand ( ImportSettingsAsync ) ;
42
- OpenSettingsJsonCommand = new AsyncRelayCommand ( OpenSettingsJsonAsync ) ;
43
42
OpenFilesOnWindowsStartupCommand = new AsyncRelayCommand ( OpenFilesOnWindowsStartupAsync ) ;
44
43
45
44
_ = DetectOpenFilesAtStartupAsync ( ) ;
46
45
}
47
46
48
- private async Task OpenSettingsJsonAsync ( )
49
- {
50
- await SafetyExtensions . IgnoreExceptions ( async ( ) =>
51
- {
52
- var settingsJsonFile = await StorageFile . GetFileFromApplicationUriAsync ( new Uri ( "ms-appdata:///local/settings/user_settings.json" ) ) ;
53
- if ( ! await Launcher . LaunchFileAsync ( settingsJsonFile ) )
54
- await ContextMenu . InvokeVerb ( "open" , settingsJsonFile . Path ) ;
55
- } ) ;
56
- }
57
-
58
47
private async Task SetAsDefaultExplorerAsync ( )
59
48
{
60
49
// Make sure IsSetAsDefaultFileManager is updated
0 commit comments