Skip to content

Commit e92c606

Browse files
Fixed Ctrl C bug in Address Bar
1 parent 5c62707 commit e92c606

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Files UWP/Interacts/Interaction.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -948,10 +948,13 @@ public async void CopyItem_ClickAsync(object sender, RoutedEventArgs e)
948948
}
949949
}
950950
}
951-
IEnumerable<IStorageItem> EnumerableOfItems = items;
952-
dataPackage.SetStorageItems(EnumerableOfItems);
953-
Clipboard.SetContent(dataPackage);
954-
Clipboard.Flush();
951+
if (items?.Count > 0)
952+
{
953+
IEnumerable<IStorageItem> EnumerableOfItems = items;
954+
dataPackage.SetStorageItems(EnumerableOfItems);
955+
Clipboard.SetContent(dataPackage);
956+
Clipboard.Flush();
957+
}
955958

956959
}
957960

0 commit comments

Comments
 (0)