Make stream resolution selection dialog resizable

This seems to help a glich, where the dialog opens with a size only a
few pixels.
This commit is contained in:
0xboobface 2018-10-03 15:05:07 +02:00
parent 866e73ccff
commit e6ce54e1d8
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ public class StreamSourceSelectionDialog {
ChoiceDialog<StreamSource> choiceDialog = new ChoiceDialog<StreamSource>(sources.get(sources.size()-1), sources);
choiceDialog.setTitle("Stream Quality");
choiceDialog.setHeaderText("Select your preferred stream quality");
choiceDialog.setResizable(true);
Optional<StreamSource> selectedSource = choiceDialog.showAndWait();
if(selectedSource.isPresent()) {
int index = sources.indexOf(selectedSource.get());