mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 19:27:56 +01:00
Goign t from OOBE to this, this Additional Options was null and crashed. (#9975)
This commit is contained in:
@@ -227,8 +227,16 @@ namespace Microsoft.Plugin.Indexer
|
||||
|
||||
public void UpdateSettings(PowerLauncherPluginSettings settings)
|
||||
{
|
||||
var option = settings.AdditionalOptions.FirstOrDefault(x => x.Key == DisableDriveDetectionWarning);
|
||||
_driveDetection.IsDriveDetectionWarningCheckBoxSelected = option == null ? false : option.Value;
|
||||
var driveDetection = false;
|
||||
|
||||
if (settings.AdditionalOptions != null)
|
||||
{
|
||||
var option = settings.AdditionalOptions.FirstOrDefault(x => x.Key == DisableDriveDetectionWarning);
|
||||
|
||||
driveDetection = option == null ? false : option.Value;
|
||||
}
|
||||
|
||||
_driveDetection.IsDriveDetectionWarningCheckBoxSelected = driveDetection;
|
||||
}
|
||||
|
||||
public Control CreateSettingPanel()
|
||||
|
||||
Reference in New Issue
Block a user