mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +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)
|
public void UpdateSettings(PowerLauncherPluginSettings settings)
|
||||||
{
|
{
|
||||||
var option = settings.AdditionalOptions.FirstOrDefault(x => x.Key == DisableDriveDetectionWarning);
|
var driveDetection = false;
|
||||||
_driveDetection.IsDriveDetectionWarningCheckBoxSelected = option == null ? false : option.Value;
|
|
||||||
|
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()
|
public Control CreateSettingPanel()
|
||||||
|
|||||||
Reference in New Issue
Block a user