Skip to content

Commit 401e898

Browse files
hishitetsumarcofranzen99ferrariofilippo
authored
Fix: Backported fixes for critical issues into the servicing branch (#12240)
Co-authored-by: Marco Franzen <mail@marco-franzen.de> Co-authored-by: Filippo Ferrario <102259289+ferrariofilippo@users.noreply.github.com>
1 parent dc2b242 commit 401e898

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/Files.App/Actions/Start/UnpinFromStartAction.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ public async Task ExecuteAsync()
2222
if (context.SelectedItems.Count > 0)
2323
{
2424
foreach (ListedItem listedItem in context.ShellPage?.SlimContentPage.SelectedItems)
25-
await App.SecondaryTileHelper.TryPinFolderAsync(listedItem.ItemPath, listedItem.Name);
25+
await App.SecondaryTileHelper.UnpinFromStartAsync(listedItem.ItemPath);
2626
}
2727
else
2828
{
29-
await App.SecondaryTileHelper.TryPinFolderAsync(context.ShellPage?.FilesystemViewModel.CurrentFolder.ItemPath, context.ShellPage?.FilesystemViewModel.CurrentFolder.Name);
29+
await App.SecondaryTileHelper.UnpinFromStartAsync(context.ShellPage?.FilesystemViewModel.CurrentFolder.ItemPath);
3030
}
3131
}
3232
}

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ public string DestinationItemPath
6666
public bool IsLocationValid
6767
{
6868
get => _isLocationValid;
69-
set => SetProperty(ref _isLocationValid, value, nameof(ShowWarningTip));
69+
set
70+
{
71+
if (SetProperty(ref _isLocationValid, value))
72+
OnPropertyChanged(nameof(ShowWarningTip));
73+
}
7074
}
7175

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

0 commit comments

Comments
 (0)