Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/view/Gui.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ public void Start()
private void OpenFile()
{
var d = new OpenDialog("Open", "Open an audio file") { AllowsMultipleSelection = false };
// This will filter the dialog on basis of the allowed file types in the array.

d.AllowedFileTypes = new string[] {".mp3", ".wav", ".flac"};
Application.Run(d);

if (!d.Canceled)
Expand All @@ -165,4 +168,4 @@ private void OpenFile()
}
}
}
}
}