Skip to content

Commit

Permalink
forgot to make the preview function work for images and audio
Browse files Browse the repository at this point in the history
  • Loading branch information
T0biasCZe committed Dec 18, 2023
1 parent 9861d1f commit 4ffbf76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AdbFileManager/CurrentCommit.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
73936af
9861d1f
2 changes: 1 addition & 1 deletion AdbFileManager/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private void dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellM
string permissions = dataGridView1.Rows[e.RowIndex].Cells[4].Value.ToString();
if(!Functions.isFolder(permissions)) {
if(checkBox_preview.Checked) {
if(Functions.videoExtensions.Any(x => name.EndsWith(x, StringComparison.OrdinalIgnoreCase))) {
if(Functions.videoExtensions.Any(x => name.EndsWith(x, StringComparison.OrdinalIgnoreCase)) || Functions.imageExtensions.Any(x => name.EndsWith(x, StringComparison.OrdinalIgnoreCase)) || Functions.audioExtensions.Any(x => name.EndsWith(x, StringComparison.OrdinalIgnoreCase))) {
//copy file to temp folder
string sourcePath = directoryPath + name;
string destinationPath = tempPath + name;
Expand Down

0 comments on commit 4ffbf76

Please sign in to comment.