Skip to content

Commit 8faf5d3

Browse files
Lamparteryaira2
andauthored
Apply suggestions from code review
Co-authored-by: Yair <[email protected]> Signed-off-by: Lamparter <[email protected]>
1 parent 7590775 commit 8faf5d3

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/Files.App/ViewModels/Properties/HashesViewModel.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public string HashInput
4242

4343
OnHashInputTextChanged();
4444
OnPropertyChanged(nameof(IsInfoBarOpen));
45-
IsInfoBarOpen = !string.IsNullOrEmpty(value);
4645
}
4746
}
4847

@@ -60,12 +59,8 @@ public string InfoBarTitle
6059
set => SetProperty(ref _infoBarTitle, value);
6160
}
6261

63-
private bool _isInfoBarOpen;
6462
public bool IsInfoBarOpen
65-
{
66-
get => _isInfoBarOpen;
67-
set => SetProperty(ref _isInfoBarOpen, value);
68-
}
63+
=> !string.IsNullOrEmpty(HashInput);
6964

7065
public HashesViewModel(ListedItem item)
7166
{
@@ -241,7 +236,6 @@ private async Task OnCompareFileAsync()
241236
HashInput = string.Empty;
242237
}
243238

244-
IsInfoBarOpen = true;
245239
}
246240

247241
public void Dispose()

0 commit comments

Comments
 (0)