@@ -58,6 +58,8 @@ public class MainWindowViewModel : ViewModelBase
5858 public string WindowTitle
5959 => $ "{ ObjectEditorContext . ApplicationName } - { ApplicationVersion } ({ LatestVersionText } )";
6060
61+ public bool SupportsDesktopFeatures => ! OperatingSystem . IsBrowser ( ) ;
62+
6163 [ Reactive ]
6264 public SemanticVersion ApplicationVersion { get ; set ; }
6365 SemanticVersion ? LatestVersion { get ; set ; }
@@ -138,7 +140,7 @@ public MainWindowViewModel()
138140
139141 OpenEditorSettingsWindow = new ( ) ;
140142 EditSettingsCommand = OperatingSystem . IsBrowser ( )
141- ? ReactiveCommand . Create ( ( ) => { } )
143+ ? CreateBrowserUnsupportedCommand ( )
142144 : ReactiveCommand . CreateFromTask ( async ( ) =>
143145 {
144146 var vm = new EditorSettingsWindowViewModel ( EditorContext . Settings ) ;
@@ -148,7 +150,7 @@ public MainWindowViewModel()
148150
149151 OpenLogWindow = new ( ) ;
150152 ShowLogsCommand = OperatingSystem . IsBrowser ( )
151- ? ReactiveCommand . Create ( ( ) => { } )
153+ ? CreateBrowserUnsupportedCommand ( )
152154 : ReactiveCommand . CreateFromTask ( async ( ) =>
153155 {
154156 var vm = new LogWindowViewModel ( EditorContext . LoggerObservableLogs ) ;
@@ -252,6 +254,9 @@ void PopulateObjDataMenu()
252254 ReactiveCommand . Create ( ( ) => FolderTreeViewModel . CurrentLocalDirectory = x ) ) ) ) ;
253255 }
254256
257+ static ReactiveCommand < Unit , Unit > CreateBrowserUnsupportedCommand ( )
258+ => ReactiveCommand . Create ( ( ) => { } ) ;
259+
255260 public static async Task < FileSystemItem ? > GetFileSystemItemFromUser ( IReadOnlyList < FilePickerFileType > filetypes )
256261 {
257262 var openFile = await PlatformSpecific . OpenFilePicker ( filetypes ) ;
0 commit comments