Commit 05dd7fa5 authored by Vitaliy Vashchenko's avatar Vitaliy Vashchenko

Merge branch '861-upravit-desktop-launcher' into 'feature-desktop'

Resolve "Upravit desktop launcher"

See merge request !661
parents 27394078 bed1d671
......@@ -37,6 +37,7 @@ import javafx.application.Application;
import javafx.application.Platform;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.scene.Parent;
......@@ -315,6 +316,16 @@ public class DesktopLauncher extends Application {
CheckBox fullscreenCheckBox = new CheckBox();
fullscreenCheckBox.setMnemonicParsing(false);
fullscreenCheckBox.setId(FULLSCREEN_CHECKBOX_ID);
fullscreenCheckBox.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
if (fullscreenCheckBox.isSelected()){
resolutionChoiceBox.setDisable(true);
}else {
resolutionChoiceBox.setDisable(false);
}
}
});
resolutionHBox.getChildren().addAll(resolutionLabel, resolutionChoiceBox);
fullscreenHBox.getChildren().addAll(fullscreenLabel, fullscreenCheckBox);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment