forked from j62/ctbrec
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:
parent
866e73ccff
commit
e6ce54e1d8
|
@ -52,6 +52,7 @@ public class StreamSourceSelectionDialog {
|
||||||
ChoiceDialog<StreamSource> choiceDialog = new ChoiceDialog<StreamSource>(sources.get(sources.size()-1), sources);
|
ChoiceDialog<StreamSource> choiceDialog = new ChoiceDialog<StreamSource>(sources.get(sources.size()-1), sources);
|
||||||
choiceDialog.setTitle("Stream Quality");
|
choiceDialog.setTitle("Stream Quality");
|
||||||
choiceDialog.setHeaderText("Select your preferred stream quality");
|
choiceDialog.setHeaderText("Select your preferred stream quality");
|
||||||
|
choiceDialog.setResizable(true);
|
||||||
Optional<StreamSource> selectedSource = choiceDialog.showAndWait();
|
Optional<StreamSource> selectedSource = choiceDialog.showAndWait();
|
||||||
if(selectedSource.isPresent()) {
|
if(selectedSource.isPresent()) {
|
||||||
int index = sources.indexOf(selectedSource.get());
|
int index = sources.indexOf(selectedSource.get());
|
||||||
|
|
Loading…
Reference in New Issue