Skip to content

Commit 638e3b7

Browse files
Fix: create button is always disabled in new shortcut dialog (#12230)
1 parent 604a0ef commit 638e3b7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Files.App/ViewModels/Dialogs/CreateShortcutDialogViewModel.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ public string DestinationItemPath
6464
public bool IsLocationValid
6565
{
6666
get => _isLocationValid;
67-
set => SetProperty(ref _isLocationValid, value, nameof(ShowWarningTip));
67+
set
68+
{
69+
if (SetProperty(ref _isLocationValid, value))
70+
OnPropertyChanged(nameof(ShowWarningTip));
71+
}
6872
}
6973

7074
public bool ShowWarningTip => !string.IsNullOrEmpty(DestinationItemPath) && !_isLocationValid;

0 commit comments

Comments
 (0)