Skip to content

Commit 9c21a29

Browse files
committed
Allow DeleteProgressBox to appear only when performing a large deletion
1 parent 572b77c commit 9c21a29

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Files UWP/Interacts/Interaction.cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,10 @@ public async void DeleteItem_Click(object sender, RoutedEventArgs e)
661661
CurrentInstance.deleteProgressBoxIndicator.Maximum = selectedItems.Count;
662662
CurrentInstance.deleteProgressBoxIndicator.Value = 0;
663663
CurrentInstance.deleteProgressBoxTitle.Text = "Moving " + selectedItems.Count + " items to the Recycle Bin";
664-
665-
CurrentInstance.deleteProgressBox.Visibility = Visibility.Visible;
664+
if(selectedItems.Count > 5)
665+
{
666+
CurrentInstance.deleteProgressBox.Visibility = Visibility.Visible;
667+
}
666668
CurrentInstance.deleteProgressBoxTextInfo.Text = "Removing item (0/" + selectedItems.Count + ")";
667669
foreach (ListedItem storItem in selectedItems)
668670
{
@@ -718,7 +720,10 @@ public async void DeleteItem_Click(object sender, RoutedEventArgs e)
718720
CurrentInstance.deleteProgressBoxIndicator.Value = 0;
719721
CurrentInstance.deleteProgressBoxTitle.Text = "Moving " + selectedItems.Count + " items to the Recycle Bin";
720722

721-
CurrentInstance.deleteProgressBox.Visibility = Visibility.Visible;
723+
if (selectedItems.Count > 5)
724+
{
725+
CurrentInstance.deleteProgressBox.Visibility = Visibility.Visible;
726+
}
722727
CurrentInstance.deleteProgressBoxTextInfo.Text = "Removing item (0/" + selectedItems.Count + ")";
723728

724729
foreach (ListedItem storItem in selectedItems)

0 commit comments

Comments
 (0)