@@ -80,29 +80,29 @@ public void initialize() {
80
80
.orElse (FXCollections .emptyObservableList ()));
81
81
versionLabel .textProperty ().bind (deviceTypeChoiceBox .valueProperty ().map (Devices ::getOSNameForType )
82
82
.orElse ("Version" ));
83
- deviceList .getSelectionModel ().selectedItemProperty ().addListener ((a , b , device ) -> loadSavedDevice (device ));
83
+ deviceList .getSelectionModel ().selectedItemProperty ().addListener ((_ , _ , device ) -> loadSavedDevice (device ));
84
84
deleteDeviceMenu .textProperty ().bind (Bindings .concat ("Remove " ,
85
85
Bindings .when (deleteDeviceMenu .disableProperty ())
86
86
.then ("Saved Device" )
87
87
.otherwise (Bindings .concat ('"' , deviceList .getSelectionModel ().selectedItemProperty (), '"' ))));
88
88
deleteDeviceMenu .disableProperty ().bind (deviceList .getSelectionModel ().selectedItemProperty ().isNull ());
89
89
backgroundSettingsMenu .textProperty ().bind (Bindings .when (backgroundSettingsButton .selectedProperty ())
90
90
.then ("Hide Background Settings" ).otherwise ("Show Background Settings" ));
91
- backgroundSettingsMenu .setOnAction (__ -> backgroundSettingsButton .fire ());
91
+ backgroundSettingsMenu .setOnAction (_ -> backgroundSettingsButton .fire ());
92
92
savedDevicesLabel .textProperty ().bind (Bindings .when (backgroundSettingsButton .selectedProperty ())
93
93
.then ("Select Devices" ).otherwise ("Saved Devices" ));
94
94
backgroundSettingsButton .textProperty ().bind (Bindings .when (backgroundSettingsButton .selectedProperty ())
95
95
.then ("Back" ).otherwise ("Auto-Save Settings" ));
96
96
savedDevicesVBox .effectProperty ().bind (Bindings .when (backgroundSettingsButton .selectedProperty ())
97
97
.then (Utils .borderGlow ).otherwise ((DropShadow ) null ));
98
- allSignedVersionsCheckBox .selectedProperty ().addListener (__ -> {
98
+ allSignedVersionsCheckBox .selectedProperty ().addListener (_ -> {
99
99
if (!allSignedVersionsCheckBox .isSelected ()) {
100
100
saveToTSSSaverCheckBox .setSelected (false );
101
101
saveToSHSHHostCheckBox .setSelected (false );
102
102
betaCheckBox .setSelected (false );
103
103
}
104
104
});
105
- betaCheckBox .selectedProperty ().addListener (__ -> betaCheckBox .setEffect (null ));
105
+ betaCheckBox .selectedProperty ().addListener (_ -> betaCheckBox .setEffect (null ));
106
106
switch (Prefs .getDarkMode ()) {
107
107
case DISABLED -> darkDisabled .setSelected (true );
108
108
case SYNC_WITH_OS -> darkSync .setSelected (true );
@@ -357,7 +357,7 @@ public void aboutMenuHandler(Event ignored) {
357
357
new ButtonType ("License" ), new ButtonType ("Github Repo" ), ButtonType .CLOSE );
358
358
alert .initOwner (Main .primaryStage );
359
359
alert .initModality (Modality .WINDOW_MODAL );
360
- alert .getDialogPane ().getScene ().getWindow ().focusedProperty ().addListener ((a , b , focused ) -> {
360
+ alert .getDialogPane ().getScene ().getWindow ().focusedProperty ().addListener ((_ , _ , focused ) -> {
361
361
if (!focused ) alert .close ();
362
362
});
363
363
//Activate default behavior for close button
@@ -423,7 +423,7 @@ public void backgroundSettingsHandler() {
423
423
if (backgroundSettingsButton .isSelected ()) {
424
424
deviceList .setCellFactory (CheckBoxListCell .forListView (device -> {
425
425
final SimpleBooleanProperty property = new SimpleBooleanProperty (device .isBackground ());
426
- property .addListener ((a , b , c ) -> addBackgroundHandler (device , property ));
426
+ property .addListener ((_ , _ , _ ) -> addBackgroundHandler (device , property ));
427
427
return property ;
428
428
}));
429
429
} else {
@@ -482,7 +482,7 @@ public void chooseTimeToRunHandler() {
482
482
}
483
483
484
484
public void startBackgroundHandler () {
485
- if (Background .isBackgroundEnabled ()) { //stops background if already in background
485
+ if (Background .isBackgroundEnabled ()) {
486
486
Background .stopBackground ();
487
487
updateBackgroundSettings ();
488
488
} else {
@@ -595,12 +595,12 @@ public void readApnonce() {
595
595
Utils .forEachButton (alert2 , button -> button .setDisable (true ));
596
596
597
597
var task = new LibimobiledeviceUtil .GetApnonceTask (false );
598
- task .setOnSucceeded (__ -> {
598
+ task .setOnSucceeded (_ -> {
599
599
apnonceField .setText (task .getApnonceResult ());
600
600
generatorField .setText (task .getGeneratorResult ());
601
601
Utils .forEachButton (alert2 , button -> button .setDisable (false ));
602
602
});
603
- task .setOnFailed (__ -> {
603
+ task .setOnFailed (_ -> {
604
604
task .getException ().printStackTrace ();
605
605
if (task .getException () instanceof LibimobiledeviceUtil .LibimobiledeviceException e ) {
606
606
e .showErrorAlert ();
@@ -691,14 +691,14 @@ private TSS createTSS(String runningAlertTitle) {
691
691
Utils .forEachButton (runningAlert , button -> button .setDisable (true ));
692
692
runningAlert .getDialogPane ().getScene ().getWindow ().setOnCloseRequest (Event ::consume );
693
693
694
- tss .setOnScheduled (__ -> runningAlert .show ());
695
- tss .setOnSucceeded (__ -> {
694
+ tss .setOnScheduled (_ -> runningAlert .show ());
695
+ tss .setOnSucceeded (_ -> {
696
696
runningAlert .close ();
697
697
Alert alert = new Alert (Alert .AlertType .INFORMATION , tss .getValue ());
698
698
alert .setHeaderText ("Success!" );
699
699
alert .showAndWait ();
700
700
});
701
- tss .setOnFailed (__ -> {
701
+ tss .setOnFailed (_ -> {
702
702
runningAlert .close ();
703
703
tss .getException ().printStackTrace ();
704
704
parseException (tss .getException ());
0 commit comments