Fix initialization of registry input
This commit is contained in:
parent
d4affbc680
commit
fef2171588
1 changed files with 9 additions and 1 deletions
|
@ -29,7 +29,15 @@
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
protected override async Task OnInitializedAsync()
|
||||||
{
|
{
|
||||||
|
if (Hive == null)
|
||||||
|
Hive = "HKCU:\\";
|
||||||
|
|
||||||
|
if (Value == null)
|
||||||
|
Value = Hive;
|
||||||
|
|
||||||
|
if (!String.IsNullOrWhiteSpace(Value))
|
||||||
Hive = AvailableHives.FirstOrDefault(h => Value != null && Value.StartsWith(h));
|
Hive = AvailableHives.FirstOrDefault(h => Value != null && Value.StartsWith(h));
|
||||||
|
|
||||||
Path = Value.Substring(Hive.Length);
|
Path = Value.Substring(Hive.Length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue