We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e8407d commit bfd0afaCopy full SHA for bfd0afa
Files UWP/App.xaml.cs
@@ -422,6 +422,12 @@ protected override void OnActivated(IActivatedEventArgs args)
422
rootFrame.Navigate(typeof(InstanceTabsView), @trimmedPath, new SuppressNavigationTransitionInfo());
423
}
424
// Ensure the current window is active.
425
+ watcher = DeviceInformation.CreateWatcher(StorageDevice.GetDeviceSelector());
426
+ watcher.Added += DeviceAdded;
427
+ watcher.Removed += DeviceRemoved;
428
+ watcher.Updated += DeviceUpdated;
429
+ watcher.EnumerationCompleted += Watcher_EnumerationCompleted;
430
+ watcher.Start();
431
Window.Current.Activate();
432
return;
433
0 commit comments